Thread
:
linux commands question
View Single Post
finlaybob
2011-02-04 , 14:20
Posts: 57 | Thanked: 9 times | Joined on Nov 2009 @ Glasgow, Scotland
#
1
My mate gave me a lot of music the other day. But about half is DRMed and thus unplayable.
I need to know how to remove all of a certain file type from a folder and its sub folders.
I've only been using linux (maemo 5 and ubuntu 9.04/10.04) for a year or so, i thought using (as root):
Code:
rm -R *.m4p
would work, but it says cannot find file.
Ive managed to find all files with said extension by using(as root):
Code:
find | grep m4p
and it lists all references to all m4p files, but how do i give this output to the 'rm' command.
I've tried(also as root):
Code:
find | grep m4p | rm rm | find | grep m4p
to no avail.
Its just my lack of knowledge on how the pipe system works
EDIT:
The directory is /home/user/MyDocs/.sounds/Music
there are sub directories per artist then album e.g.
/home/user/MyDocs/.sounds/Music/Andrew WK/Close Calls With Brick Walls/Track1.m4p
Any help appreciated.
Cheers.
Last edited by finlaybob; 2011-02-04 at
15:08
.
Quote & Reply
|
The Following User Says Thank You to finlaybob For This Useful Post:
inkirby
finlaybob
View Public Profile
Send a private message to finlaybob
Find all posts by finlaybob