F16 Help with find.

Sjoerd Mullender sjoerd at acm.org
Thu Apr 5 09:35:21 UTC 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 372 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120405/a4b2ad7d/attachment.sig>


More information about the users mailing list