[NTLUG:Discuss] Bash command

Kelledin kelledin+NTLUG at skarpsey.dyndns.org
Fri Jul 23 21:37:22 CDT 2004


On Friday 23 July 2004 09:30 pm, Kelledin wrote:
> find -atime +5 -exec rm -f '{}' \;

Slightly updated, more robust:

    find -atime +5 -exec rm -f -- '{}' \;

That covers cases where a filename might start with a '-' 
character.

--
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"



More information about the Discuss mailing list