This is a discussion on find files in a given directory, but exclude all subdirectory. within the AIX Operating System forums, part of the Unix Operating Systems category; --> I would like use the find command to find files which without modifiy over 3 days, but I only ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I would like use the find command to find files which without modifiy over 3 days, but I only need the result in a given directory(for example /etc/), I don't want the result for all other subdirectory under /etc (for example /etc/bin/ or /etc/logs) , I mean to exclude all subdirectory under the given direcotry, how can I do that ? Would someone give me a help, thank you. |
| ||||
| bluebirdken wrote: > I would like use the find command to find files which without modifiy > over 3 days, but I only need the result in a given directory(for > example /etc/), I don't want the result for all other subdirectory > under /etc (for example /etc/bin/ or /etc/logs) , I mean to exclude > all subdirectory under the given direcotry, how can I do that ? > Would someone give me a help, thank you. find ./* -prune -mtime +3 -print -- Jason |