Results 1 to 3 of 3
I am trying to find and delete a file using this
Code:
find . -type f -name ph2964781400100954291.jpg -exec rm -f {} \;
It does not work, I think because ...
- 04-27-2011 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 26
[SOLVED] Find and delete file
I am trying to find and delete a file using this
It does not work, I think because by default on my distro rm is iterative.Code:find . -type f -name ph2964781400100954291.jpg -exec rm -f {} \;
How do I fix this?
Thanks a lot in advance.
- 04-27-2011 #2
find knows -delete
You must always face the curtain with a bow.
- 04-27-2011 #3Just Joined!
- Join Date
- Dec 2008
- Posts
- 26
Thank you that solved it perfectly


