script help
James Kosin
jkosin at beta.intcomgrp.com
Mon Dec 1 20:47:58 UTC 2008
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
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
You have to change the rm command to use '-rf' instead of '-f'
But, I'd make sure the script is doing what you want before modifying this.
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081201/9ec98ca8/attachment-0001.sig>
More information about the fedora-list
mailing list