Discussion:
Reversing file
(too old to reply)
Roy R SIEP Johnson
2005-03-10 19:07:30 UTC
Permalink
Minus another char:
perl -pi -e 's//<>/e;eof||redo' in.file
Tuomo Salo
2005-03-11 08:46:12 UTC
Permalink
Post by Roy R SIEP Johnson
perl -pi -e 's//<>/e;eof||redo' in.file
Choosing another loop construct lets you drop the annoying ";"

perl -pi -e 's//<>/ewhile!eof' in.file

-bass

Loading...