Thread
:
linux commands question
View Single Post
Reffyyyy
2011-02-04 , 15:38
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
.
Quote & Reply
|
The Following User Says Thank You to Reffyyyy For This Useful Post:
finlaybob
Reffyyyy
View Public Profile
Send a private message to Reffyyyy
Find all posts by Reffyyyy