
01-04-2009
|
|
Shell programmer, author
|
|
|
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,365
|
|
Quote:
Originally Posted by Hangman2
That worked.
I had to delete the file so I added
&& `rm $f`
|
Why are you trying to execute the output of `rm $f`?
It should be:
Code:
&& rm "$f"
If you just want to delete the files in dir4, why not:
Code:
rm /dir1/dir2/dir3/dir4/* 2>/dev/null
|