Re: script help

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

 



On Tue, 2008-12-02 at 04:42 +0800, adrian kok wrote:
> Hi
> 
> I have script to remove files but it can't work in
> directory
> 
> 
> ls *log | sort -r | sed -e 1,1d | xargs rm -f
> 
> those folders are:
> 
> Nov28-log
> Nov29-log
> Nov30-log

You need to explain what you're trying to do exactly.

Also, what's the "1,1d" for in the sed command? Don't you mean "1d"?

poc

-- 
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