scrivere file

Christian Gollwitzer auriocus at gmx.de
Sun Feb 12 16:46:56 EST 2017


Am 12.02.17 um 22:07 schrieb BartC:
> On 12/02/2017 20:38, Christian Gollwitzer wrote:
>> Am 12.02.17 um 21:19 schrieb Paolo:
>>> Buonasera, è da un pò che sto cercando come esercizio di scrivere un
>>> file al contrario.
>>> Mi spiego meglio ho un file con N righe e vorrei scriverne un altro con
>>> gli stessi dati ma la 1° riga deve diventare l' ultima.
>>
>>  tac <file1 >file2
>>
>> does that.
>
> In what language?

Shell script.

> In Python, I had to do something like this:
>

Thank you for doing his homework.

	Christian



More information about the Python-list mailing list