[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing extensions, a little OT perhaps.



Hi Bob,

On Fri, 26 Apr 2002, Bob Torres wrote:

> I recently transferred some MP3s from my MacOS desktop to my Debianppc
> laptop.  There are no file extensions for these mp3 files, so they're
> kind worthless for xmms in Linux. 

hmmm, at least with mpg321, extensions don't make any difference.

> On the Linux side, how would I go about adding extensions to these files
> without doing it manually?  In other words, is there something I could
> pass at the command line to accomplish this for a whole directory of
> files?  I've been using Linux for three years or so now, and I've always
> wanted to know how to do this...anyone care to educate me?  I'm hoping
> for something a little more substantive than "go learn sed (or whatever
> program)," though learning by example usually works the best for me. ; )

I guess the easiest way is install the "mmv" package and do

mmv \* \#1.mp3

if you need to rename whole directorie hierarchies, something like

find . -type f -exec mv '{}' '{}'.mp3 \;

would probably do the job.

Anyway, I'd strongly suggest you read a few man pages, sh(1), find(1),
mv(1), sed(1) and awk(1) should contain 99% of the information you need.
Unfortunately, it will take you ~1d to learn reading man pages, if you
start with something simple like mv(1), plus another 2..3 weeks to get
through all the man pages and those they reference.

I'm sure there are lots of tutorials which will be easier to read, but you
should definitely read the original docs to really understand everything..


Cheers,
	Siggi



-- 
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: