Re: Script help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20Sep2008 10:36, I wrote:
| Something like the find incantation of another post is the easy way:
| 
|   find . -type f -name 'myfile\*.txt' | ls -t | sed 1q

Gah. My brain is off. Something more like this:

  files=`find . -type f -name 'myfile\*.txt'`
  ls -t -- $files | sed 1q

Won't work if there are spaces in the filenames...
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

These are my principles, and if you don't like them, I have others.
        - Groucho Marx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux