16 Nov
2004
16 Nov
'04
06:53
-- "William A. Mahaffey III" <wam@HiWAAY.net>
Patrick B. O'Brien wrote:
Hi,
I need to find a word in a file then remove it. I'm doing the following, but with no luck, thanks.
'find /var/spool/mqueue/ -type f|xargs grep toulon -exec rm {} \;'
faster way to delete the files: find . -type f | xargs grep -l $word | xargs rm -fv; exec will fork once for each word. -- Steven Lembark 117 E. 55th Cognia NY, NY 10022 212 331 7844