[PLUG] Sorting Text File By Date [SOLVED]
Michael Rasmussen
michael at jamhome.us
Thu Jan 26 02:08:31 UTC 2012
On Wed, Jan 25, 2012 at 02:53:00PM -0800, Rich Shepard wrote:
> On Wed, 25 Jan 2012, Galen Seitz wrote:
>
> > If all you need to do is reverse the order of the lines, then the tac
> > command is what you need.
>
> Thanks, Galen! When I searched with apropos I did not see that tac is cat
> spelled backwards. Clever ... and does the job.
And if for some reason tac isn't available
perl -e 'print reverse <>;' FILE
--
Michael Rasmussen, Portland Oregon
Other Adventures: http://www.jamhome.us/ or http://westy.saunter.us/
Fortune Cookie Fortune du jour:
Now to decide if Portland's current dry weather (now into its fourth or
fifth hour) will last long enough for ...
~ anon
More information about the PLUG
mailing list