Hello all,

I need a script to do the following; if anyone's seen a pre-existing
script which does the same thing, or could do the same thing with a little
modification, I'd be happy to use it.  As of yet, I can't find anything,
and the Perl documentation i've looked at hasn't been too helpful.  I know
it's important to understand octal, hex, and escape sequences, but I need
to do this in days, not weeks or months.

1 - Read in a directory listing (i'm using linux)
2 - Assign each line (filename) to a variable
3 - extract ID3 tag, or other tag information from the file
4 - run a program, (like ogg123) using a given variable as the output
filename, with a different extension. (variable taken from the directory
listing)
5 - reattach the ID3 or other tag to the new file.
6 - delete the old file
7 - repeat on all files in a given directory.

This can't be that hard.  I do have some basic programming experience, I
understand structure, but have no idea what functions to call (or how to
call a free-standing linux program from within Perl.)

As you can probably tell, I'm looking for a script to convert ogg files to
mp3 en-masse, while retaining filenames and important tag information.
I've got a bash script which sort-of works, but does not retain any file
information and leaves me with new filenames like 01.mp3, 02.mp3, etc.

If anyone could help it would be greatly appreciated.  Also if anyone
knows of a site where I can find existing, functional, and EXPLICITLY
notated Perl scripts I would be forever indebted.  I learn much better by
dissecting someone else's work than I do from "Hello, World" programs.
I've written too many of those already.

If this can be done in BASH, let me know.

Grateful,
Graham Saathoff



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to