tac will do this BTW. (tac = cat spelt backwards. I don't think any
Unix wizards will ever win a comedy award, except perhaps Randall
Munroe (of xkcd.com fame)).
Adrian
--
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS
--
Please post to: Hampshi
On 16/07/10 03:05, Vic wrote:
I don't need debugging tools. I just avoid writing code with bugs in.
Yeah, alright Dan. I'm sure we can all take that seriously.
You seemed to take my previous tongue-in-cheek comment about the
illegibility of Perl one-liners seriously.
But seriously, I have
> Actually, I have no idea what the semantics of <> are. I don't even know what
> you call that syntactically - anonymous filehandle constant? Can you point me
> to documentation about the semantics of that thing?
Its a special case of a .
perldoc perlop
If a is used in a context that is look
On 16 July 2010 03:05, Vic wrote:
>
> > I don't need debugging tools. I just avoid writing code with bugs in.
>
> A clear breach of the first law of programming!
>
> --
> Please post to: Hampshire@mailman.lug.org.uk
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG
> I don't need debugging tools. I just avoid writing code with bugs in.
Yeah, alright Dan. I'm sure we can all take that seriously.
Vic.
--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
On 15/07/10 14:08, Vic wrote:
perl -e 'print reverse <>' output.csv
Yes, but because Python is more legible I stand a better chance of
understanding what it does when I come to re-read it. Not like that
gibberish.
That's just prejudice.
Well, postjudice. I have personal experience of trying
On Thursday 15 July 2010 15:20:39 Victor Churchill wrote:
> On 15 July 2010 14:42, Jack Knight wrote:
> > On 15/07/10 14:08, Vic wrote:
> perl -e 'print reverse<>'output.csv
> >>>
> >>> Yes, but because Python is more legible I stand a better chance of
> >>> understanding what it does when I
On 15 July 2010 14:42, Jack Knight wrote:
> On 15/07/10 14:08, Vic wrote:
>>
perl -e 'print reverse<>'output.csv
>>>
>>> Yes, but because Python is more legible I stand a better chance of
>>> understanding what it does when I come to re-read it. Not like that
>>> gibberish.
>>>
> P
On 15 July 2010 14:03, Pierre Cazenave wrote:
>
> tac input.csv > output.csv
>
> tac == cat backwards :)
>
I like that one.
--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
---
On 15/07/10 14:08, Vic wrote:
perl -e 'print reverse<>'output.csv
Yes, but because Python is more legible I stand a better chance of
understanding what it does when I come to re-read it. Not like that
gibberish.
That's just prejudice.
Having spent some time this week trying t
> You've got it easy, with A&L not only is it in reverse order, but the
> recent
> items section sorts things differently within a day to the final statement.
> I
> have to go through and reorder them for the running balance. Not that I'm
> planning to be with them much longer anyway. There's also
>> perl -e 'print reverse <>' output.csv
>
> Yes, but because Python is more legible I stand a better chance of
> understanding what it does when I come to re-read it. Not like that
> gibberish.
That's just prejudice.
Having spent some time this week trying to debug some Python, I have come
to t
On 15/07/2010 12:38, Daniel Pope wrote:
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
On 15/07/10 12:49, Vic wrote:
perl -e 'print reverse <>' output.csv
Yes, but because Python is more legible I stand a better chance of
understanding what it does when I come to re-read it. Not like that
gibberish.
Dan
--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://m
** Ian Park [2010-07-15 12:43]:
> On 15/07/10 12:32, Chris. Aubrey-Smith wrote:
> > I thought my recent experiences with Lloyds TSB might be of interest.
> >
> > Last Tuesday, Lloyds changed their on-line banking system. The most
> > noticeable change is that statements now appear upside-down
>
> On 15/07/10 12:32, Chris. Aubrey-Smith wrote:
> > Hi, all!
> >
> > I thought my recent experiences with Lloyds TSB might be of interest.
> >
>
> Please post to: Hampshire@mailman.lug.org.uk
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug
On 15/07/10 12:44, Daniel Pope wrote:
On 15/07/10 12:41, James Courtier-Dutton wrote:
python flip_csv.pyoutput.csv
>
Yes, but how much does that cost and does it have to have windows... ;-)
For that I will charge a mere £125 ex VAT consultancy fee, but I would
recommend you pay another £450
Hmmm, Smile (the Co-op internet bank) are even more confusing: if you
grab a "recent items" statement, that comes with the most recent at the
top; if you grab a "complete" statement (when Smile thinks a page is
full), that comes with the most recent at the bottom.
Ian
--
Ian Park
17 Pyle Hill
New
> cat >flip_csv.py <
> import sys
> lines = sys.stdin.readlines()
> lines.reverse()
> for l in lines:
> sys.stdout.write(l)
>
> END
> python flip_csv.py output.csv
perl -e 'print reverse <>' output.csv
Vic.
--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lu
On 15/07/10 12:41, James Courtier-Dutton wrote:
python flip_csv.pyoutput.csv
>
Yes, but how much does that cost and does it have to have windows... ;-)
For that I will charge a mere £125 ex VAT consultancy fee, but I would
recommend you pay another £450 ex VAT for me to set up a virtual
app
On 15 July 2010 12:38, Daniel Pope wrote:
> 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 <
> import sys
> lines = sys.std
On 15 July 2010 12:32, Chris. Aubrey-Smith wrote:
> Hi, all!
>
> I thought my recent experiences with Lloyds TSB might be of interest.
>
> Last Tuesday, Lloyds changed their on-line banking system. The most
> noticeable change is that statements now appear upside-down, with the latest
> transa
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
Hi, all!
I thought my recent experiences with Lloyds TSB might be of interest.
Last Tuesday, Lloyds changed their on-line banking system. The most
noticeable change is that statements now appear upside-down, with the latest
transaction at the top. For those of us who were brought up to perfor
24 matches
Mail list logo