On Sat, Dec 23, 2000 at 01:59:40PM -0200, Christoph Simon wrote:
>
> You can write a simple script:
>
> #!/bin/sh
>
> for i in `find . -name "*.mpr"` ; do
> mpg123 <options> $i `basename $i .mp3`.1.mp3
> ...
> done
>
> But this will break if there are spaces in the file names. A reall
> straight forward solution could be then writing the filenames into a
> file and use an emacs macro to explicitly construct the commands...
A more straightforward way than using the editor with an OS, ;-) would be
a simple Perl script.
Use readdir, and spaces in filenames won't break it.
Mike
> ---
> ^X^C
> q
> quit
> :q
> ^C
> end
> x
> exit
> ZZ
> ^D
> ?
> help
> shit
> .
Hee... Vim rocks, but this is still funny. ;-)
Mike
--
Michael P. Soulier <msoulier@storm.ca>
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort." -Harley Hahn, A Student's Guide to UNIX
PGP Public Key: http://www.storm.ca/~msoulier/personal.html
Attachment:
pgpn4KfCopSNA.pgp
Description: PGP signature