View Single Post
Posts: 662 | Thanked: 653 times | Joined on Feb 2010
#7
Were you in the folder when you ran the command?

If not:

sza=$(ls -R | grep m4p); rm $sza

to delete them all recursively. Works every time for me.

EDIT: I spoke too soon. It appears that ls won't display the full path when recursive is switched on.

Last edited by Reffyyyy; 2011-02-04 at 15:44.
 

The Following User Says Thank You to Reffyyyy For This Useful Post: