Re: [Hampshire] On-line Banking (Not entirely O.T.)

Page principale

Répondre à ce message
Auteur: Daniel Pope
Date:  
À: hampshire
Sujet: Re: [Hampshire] On-line Banking (Not entirely O.T.)
On 15/07/10 12:32, Chris. Aubrey-Smith wrote:
> I was blithely
> informed that there was no problem, since I could buy a piece of
> software which would turn the CSV files back the right way up.


cat >flip_csv.py <<END

import sys
lines = sys.stdin.readlines()
lines.reverse()
for l in lines:
     sys.stdout.write(l)


END
python flip_csv.py <input.csv >output.csv

Dan