Re: script help

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

 



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

By 'folders', do you mean that these are directories? You need to 'rm -rf' directories to remove the with their contents, or you can 'rmdir' if they are empty.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx

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