bug-findutils
[Top][All Lists]
Advanced

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

Following find doesn't work in root home directory


From: Dave Stuttard
Subject: Following find doesn't work in root home directory
Date: Tue, 19 Mar 2002 11:01:40 -0000

Reproduced below is a couple of 'finds' I'm having fun with in bash on Red
Hat 7.1. The first one is a recent addition to a script. If I rerun '704' in
non root home directories it works fine. The second find '705' works
wherever I try it. The only substantial difference I can see is the 2
asterix in the 704 statement.

address@hidden /etc >> cd
address@hidden /root >> !704
find /live/in/backup -name *REP* -mtime +367 -exec ls {} \;
find: paths must precede expression
Usage: find [path...] [expression]
address@hidden /root >> !705
find /live/sys/files -name *SPL -mtime +7 -exec rm {} \;
address@hidden /root >>

Thanks in advance for any help. At the moment I get round this by putting
unnecessary cd's around the statement in my script.

Dave Stuttard
Rayware
Liverpool

(+44)151 336 9514



reply via email to

[Prev in Thread] Current Thread [Next in Thread]