removeall 1 day old files from a directory

January 22, 2011 at 22:27:24
Specs: Unix
find -type f -mtime 1 -maxdepth 1 -ok rm {} /;

i am trying this command but with the version of unix i have, -maxdepth is not available.
I want to delete files only from current directory not subdirectories. Any suggestions.


See More: removeall 1 day old files from a directory

Report •

#1
January 23, 2011 at 08:40:56
The find command maxdepth issue, has been discussed in this forum before. Here are two links of many:

http://www.computing.net/answers/pr...
http://www.computing.net/answers/un...


Report •
Related Solutions


Ask Question