dickiebird
Programmer
Hi Guys
I have a simple find command on AIX 4.3.3 :
find /sybase/applications/sda/outputs -name "CMGS*[0-9]" -mtime 1 -print -prune
but it also picks up all matching files in my sub-directory 'savold' ( 2-day old files saved away )
Which I don't want to catch in the find command!
I thought -prune would prevent this - I also tried
find . -name "CMGS*[0-9]" -mtime 1 -print -prune
and
find . -name "/sybase/applications/sda/outputs/CMGS*[0-9]" -mtime 1 -print -prune
and still catch the old saved files in dir savold.
Anybody care to enlighten me ?
Cheers ;-) Dickie Bird
db@dickiebird.freeserve.co.uk
I have a simple find command on AIX 4.3.3 :
find /sybase/applications/sda/outputs -name "CMGS*[0-9]" -mtime 1 -print -prune
but it also picks up all matching files in my sub-directory 'savold' ( 2-day old files saved away )
Which I don't want to catch in the find command!
I thought -prune would prevent this - I also tried
find . -name "CMGS*[0-9]" -mtime 1 -print -prune
and
find . -name "/sybase/applications/sda/outputs/CMGS*[0-9]" -mtime 1 -print -prune
and still catch the old saved files in dir savold.
Anybody care to enlighten me ?
Cheers ;-) Dickie Bird
db@dickiebird.freeserve.co.uk