maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   linux commands question (https://talk.maemo.org/showthread.php?t=69353)

finlaybob 2011-02-04 16:36

Re: linux commands question
 
AHA!

Able to delete the actual path by using

Code:

sz=$(find | grep Braided); rm "$sz"
EDIT:
Scratch that. Its seems to only work on a single file :(

Code:

sz=$(find | grep m4p); rm "$sz"
only removes the first file in the list.


Code:

sz=$(find . -name "*.m4p"); rm "$sz"
Does the same.

Rob1n 2011-02-04 16:54

Re: linux commands question
 
Quote:

Originally Posted by finlaybob (Post 935975)
Thanks for all replies, however nothing is working

All commands do something similar to this

I'm now at home so using SSH instead of tiny little keys :).

using a single file at the moment, this is the path:
Code:

./Neneh Cherry, Speech & Speech & Neneh Cherry/1 Giant Leap/Braided Hair.m4p

Yeah, spaces can really mess things up. I'd advise installing the findutils-gnu package, then doing:
Code:

gfind . -name "*.m4p" -delete

finlaybob 2011-02-04 17:01

Re: linux commands question
 
EDIT:

@Rob1n It worked!! Thanks for pointing me to the package!

Now I need to do the same in windows...

wish me luck!

Dancairo 2011-02-04 17:17

Re: linux commands question
 
You could use Daniusoft media converter ultimate to strip the DRM and then you won't have to delete them :-)
It also works for BBC iPlayer downloads so you can keep the shows as long as you want!
It's a commercial program and i'd strongly advise you not to find a copy free on the net even though there are loads out there. :-)

Copernicus 2011-02-04 17:35

Re: linux commands question
 
Quote:

Originally Posted by Rob1n (Post 935998)
Yeah, spaces can really mess things up. I'd advise installing the findutils-gnu package, then doing:
Code:

gfind . -name "*.m4p" -delete

Another thank you for this info! I was scratching my head trying to figure out just how to escape spaces in file names. Much easier to just use the Gnu tools... I'll be downloading these myself. :)

finlaybob 2011-02-04 17:36

Re: linux commands question
 
Thanks DanCairo but i've tried a similar program already, it just told me I didnt have the license file so could not continue. Ill have a look at Daniusoft though, cheers!

Dancairo 2011-02-04 17:46

Re: linux commands question
 
Quote:

Originally Posted by finlaybob (Post 936045)
Thanks DanCairo but i've tried a similar program already, it just told me I didnt have the license file so could not continue. Ill have a look at Daniusoft though, cheers!

Well I use it for just that purpose, DRM'd music (which I bought! so i'll do what the bloody hell I want with it thank you (aimed at the companies, not you:D))...and I'm using it right now for an iplayer program I haven't got round to watching yet - but I will delete later, promise.

EDIT.... If you want to email me a DRM'd song, i'll try it for you ;)

finlaybob 2011-02-04 18:49

Re: linux commands question
 
Tried the trial of "DRM converter" from their site, creates an mp3 with no sound. :(


All times are GMT. The time now is 11:07.

vBulletin® Version 3.8.8