truncating file extensions
Igor Gueths
igueths at lava-net.com
Sat May 21 10:25:12 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Ah thx. I did for $file in *.mp3; do
lame --decode "$file" "${file=mp3/wav}" and it works as it should.
On Sat, May 21, 2005 at 10:05:05AM -0400, John Covici wrote:
> You could quote thename or use one of the many ${ ...} to get rid of
> an extention. If I remember %% gets rid of a string at the end of a
> parameter.
>
> on Thu, 19 May 2005 17:13:54 -0400 Igor Gueths <igueths at lava-net.com> wrote:
>
> > Hi all. The subject pretty much nails it...I've been trying to find a way to truncate the ugly extensions that Lame leaves behind when batch-transcoding i.e., foo.mp3.wav. Currently, I've
> > managed to come up with the following:
> > for file in *.mp3
> > do
> > lame --decode $file ${file/mp3/wav}
> > done
> >
> > When I run the above, I get an error from Lame-3.96.1 about an excessive number of arguments. When I run it in a script with #!/bin/bash -x, I found that the filenames aren't being escaped as
> > they should. Anyone know how I would correct it so that it works on files with whitespace? Thanks!
> > --
> > How many chunks could checkchunk check if checkchunck could check chunks?
> > -- Alan Cox
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> Your life is like a penny. You're going to lose it. The question is:
> How do
> you spend it?
>
> John Covici
> covici at ccs.covici.com
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
- --
How many chunks could checkchunk check if checkchunck could check chunks?
- -- Alan Cox
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iQIVAwUBQo9Ex6e2pgKIdGq4AQoYTg//VaXSAclVciYJdfWvCq5IdHL0CE1Zgl/J
EACNVfu+OVK6sILI3yahhRRbbxX5g54Zp9RabB+/5DlJ6+5tTgw62+tl+7uqKHCj
15wKH8RILd9CnS0ZlLdl8PMXCq0cVs1kRLlDeH3sEYkFixW05368uqNxPsvwO111
0mBjStW3joJ/dF+OO5lGkeNx11kLR19subsAnPwNnORggGI1/I2Reff5SDDHTgwY
KS07LCF6U0Y6VHRQwI0AWKylMIPEg3nY2V65xH7113eX3e+Mx5OPci9BHAY1Mq5w
ViPRwqT9RqE9C1IiWxyYkURP7Ttf/R362dRzn6BdKKnBKJU/NDxtKS2AJutBXhyV
eHEWYY4tq2pt4Q/4CPI0r3zx7tZ/aKrTB6+1aII9/VB2eEick77gyPH+rtorQNAW
kpdVVGl/jjcluEzlScA4D8DL4RgFNeSDb6LsMtDdR0O1+ZTmE4bbh42iZ4Eqz8iT
6rBX8bLjWa4/mPl/Jb9UCSBdhqBjsQQc5/IWsJ7+6U+vNghGTh/5EYGngfov7WaX
vbqAgYIrR0M8xk494dYBCrTyFgIy9YZuofwYVRMzScnZr4yAfxEbaW8P0sjn7rmw
bAckSUnhrH56sYUjS1jDMc2260LJamir6aVAY58lmh472BspTKVsTHIP8sAmGw5G
6L/iWJdwqUE=
=wNeX
-----END PGP SIGNATURE-----
More information about the Speakup
mailing list