[NTLUG:Discuss] Bash command

Dennis dearroz at comcast.net
Fri Jul 23 20:45:29 CDT 2004


I am attempting to create a dual command to delete files, such that I 
search for files greater than n days (find -atime +n) and then deleting 
them (rm -f).  I have attempted several alternatives of the command, but 
not working.

I have tried :
    rm -f < $(find -atime +5)
    find -atime +5 | $(rm -f)
and a few other variations.  Know the solution is obvious to the 
knowledgeable.

Suggestions please.

Dennis Rice
dennis at dearroz.net





More information about the Discuss mailing list