find command

Chris Jones jonesc at hep.phy.cam.ac.uk
Tue Aug 28 13:25:37 UTC 2007


Kaushal Shriyan wrote:
> find . -name "url*.0" -atime "Apr" | wc -l
> find: invalid argument `Apr' to `-atime'

the options -atime, -mtime etc. do not accept an argument of the type
"Apr", so you cannot do what you want in this way. These arguments
expect an integer, which specifies the age of the file in days or
minutes. See man find for more info, or

http://www.softpanorama.org/Tools/Find/find_mini_tutorial.shtml

Chris




More information about the fedora-list mailing list