good old find/remove question

2007-12-24 23:41:00

what is the safest way to remove non-system critical
"core" and ".out" files in sparc solaris 2.6?. any?.

1)
find /path \( -name core -o -name *.out -o -name
nohup.out \) -print -exec rm {} \;
2)
find /path -type f -a -name core -exec rm {} \;
3)
find /path \( -name -o '*.out' \) -print -exec rm {}
\;
jim
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Comments

Got something to say?

You must be logged in to post a comment.