[HPADM] RE: find - limit search
To: <firstname.lastname@example.org> Date: Fri, 9 May 2003 21:35:53 +0200
thanks for all your answers, but i must admit i wasn't very clear on
Most people adviced me to pipe the output :
find /var -type f -mtime +1 | head -1
Ok, this gives me only one file, and that's what i'm doing right now,
but it doesn't stop after finding one file..
The purpose of the question was to 'exit' after one hit.
Maybe it's not possible with the find command, but let me ask the
somehow different :
I want to find on every filesystem just one file that's older than one
Once the first file is found, stop searching and go on with the next
The above find command gives a lot of overhead because it keeps going
the whole filesystem...
Searching a file with the above command gives a lot of overhead, because
command returns ALL files.
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact email@example.com Name: firstname.lastname@example.org Owner: email@example.com Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)