Re: Pls help with Unix shell question

From: Michael Tosch (eedmit_at_NO.eed.SPAM.ericsson.PLS.se)
Date: 03/05/04


Date: 5 Mar 2004 17:15:06 GMT

In article <aI02c.33676$hm4.26678@newsread3.news.atl.earthlink.net>, "wl" <bli01@yahoo.com> writes:
> Hi all,
>
> Not having worked with Unix script for a while, suddenly, I
> have a need. The only thing I can do on Unix now is "vi", which I guess I
> will never forget.
>
> I have a bunch of files, ending with ".data" in a Unix directory, which I
> want to process in date order with a program. I recall doing
> something similar in the old days. Does anyone have an example?
>
> Thanks,
> Bill
>
>

maybe you want
ls -t *.data | program

ls -lt
shows how it is sorted.

ls -ltr
sorts backwards.

Man pages:
man ls

-- 
Michael Tosch
IT Specialist
HP Managed Services Germany
Phone +49 2407 575 313
Mail: michael.tosch@hp.com


Relevant Pages

  • Re: Pls help with Unix shell question
    ... > Not having worked with Unix script for a while, suddenly, I ... sorts backwards. ... Michael Tosch ... HP Managed Services Germany ...
    (comp.unix.misc)
  • Re: Pls help with Unix shell question
    ... > Not having worked with Unix script for a while, suddenly, I ... sorts backwards. ... Michael Tosch ... HP Managed Services Germany ...
    (comp.unix.shell)