Re: Print the contents of a file in reverse
From: Pavel Pokorny (Pavel.Pokorny_at_vscht.RemoveMe.MeToo.cz)
Date: 04/01/05
- Next message: Bernd Haug: "Re: ? Finding duplicate IP's on a local network ?"
- Previous message: Mike Peterson: "Automated SysAdmin; Dot Files; HP-UX porting (ver: Dec 16, 2004)"
- Next in thread: all mail refused: "Re: Print the contents of a file in reverse"
- Maybe reply: Ulrich Windl: "Re: Print the contents of a file in reverse"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 1 Apr 2005 08:29:26 +0000 (UTC)
Doug O'Leary <dkoleary@olearycomputers.com> wrote:
> $ perl -ne 'unshift (@a,$_); END {print @a}' abc
I like this.
And how would you reverse the bytes in the entire file in Perl?
-- Pavel Pokorny Math Dept, Prague Institute of Chemical Technology http://www.vscht.cz/mat/Pavel.Pokorny
- Next message: Bernd Haug: "Re: ? Finding duplicate IP's on a local network ?"
- Previous message: Mike Peterson: "Automated SysAdmin; Dot Files; HP-UX porting (ver: Dec 16, 2004)"
- Next in thread: all mail refused: "Re: Print the contents of a file in reverse"
- Maybe reply: Ulrich Windl: "Re: Print the contents of a file in reverse"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|