Just a small suggestion ...
> On 11:36 01 Mar 2002, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> | I have a machine running 7.2, samba file server for windows
<snip>
> However, this can all be reduced even further:
>
> find /home2/Temp/Test -type f \
> \( -iname '*.ac$' \
> -o -iname '*.bak' \
> -o -iname '*.bk?' \
> -o -iname 'back*.cdr' \
> -o -iname '*.chk' \
> -o -iname '*.dmp' \
> -o -iname '*.err' \
> -o -iname '*.sv$' \
> -o -iname '*.tmp' \
> -o -iname '~*.*' \
> \) -print -exec rm -f {} ';'
>
make the last line:
\) -print -exec rm -f '{}' ';'
If you don't do this the script WILL DELETE any files
that match the beginning of a filename you want deleted
but that contains a space in it (since the choice was "rm -f")
e.g. if /home/Temp/Test contains two files:
"it" and "it is ok to delete me.tmp"
The first will be deleted - but not the second.
(and you can also use \; instead of ';' :-)
<snip>
--
-Cheers
-Andrew
MS ... if only he hadn't been hang gliding!
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list