On 2012-04-05 11:07, Ralf Corsepius wrote:
On 04/05/2012 09:31 AM, Frank Murphy wrote:
> Error from logwatch:
> find: paths must precede expression: (-name
> Usage: find [-H] [-L] [-P] [-Olevel] [-D
> help|tree|search|stat|rates|opt|exec] [path...] [expression]
>
>
> find /nfs/yum/16/i386/_local/packages -type f ! \(-name 'autoplus*' -o
Try adding a "-a" here ........................^
(Between "-type f" and "!")
No, not necessary. Instead, add a space between \( and -name.
> -name 'bleachbit*' -o -name 'ceylon*' -o -name
'mousepad*' -o -name
> 'fedorautils*' -o -name 'kernel*' -o -name 'notecase*' -o
-name 'perf*'
> -o -name 'packages' \) | xargs -r rm
>
Ralf
--
Sjoerd Mullender