-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iQIVAwUBQo0Bkqe2pgKIdGq4AQrDaxAAt0o50iJsSupfO0wPlCPzWB+cnqXJoSSv W3rZm24jicvRdkfcuejMNUljTur1rIT2u7LlyHJ7gsg1EDEL5ZkjzJ26wFy5VPsm 5amFtVUvJeBZiW0lAr4WmXoQAqflhuBP0ik6/4xbEndUf+BBzqCEvNj68VMFjoBX ZMRDrEAvrc5F6CAfYFWlFkMToGqPXzFdF0vK21F3QHh61syvfVRjVQjBOMc1r6j+ xamUaQa2Aj3u2us+l0XEf+5/9SpFgVfraMft3tJpxAA7VKoEoIVbbUpoCHjwdWWM XVVdgiSs7wptTJg1MQg3fJqd68WsWNmrNs6OGNQAEa7bHO6CYVEfNCcgNLVs91ZT FbiEgQQoyZAqerQsis8CB1uKXZuZGHw+yRVdC/LzDZ+hdK6dFSl60plszVhLtZvG LdWZDIIvlSRHXTnjkjV14btAcJTuRTjvfNfTbP429CGHXPYvkFadNxZ9TW19z5vM ZGHlTAT57P151if9HQ2HXYnjqb0Jnx6OwlrAuoYDxnAi9g/77RmuBhdVyWcVzQPg ZnL0siabFZHnBG0lDfZUH7GAQBToGz4bSPJCzlRim9WGhPtUjwYRhFtqf03Qjqz7 289n7fi0ID2sxbCU3N2x4gwJL/BFmOkWtbTfciM6cuXACBdn3D9zCbPlrgTPS3mm /c5Nw7o9rt8= =0/m0 -----END PGP SIGNATURE-----