On Fri, 25 Apr 2014 11:27:31 +0100 Chris Green cl@isbd.net wrote:
On Thu, Apr 24, 2014 at 02:32:31PM +0100, steve-ALUG@hst.me.uk wrote:
Does for t in {01..15}*.ogg; do twolame -b 320 "$t" "$t.mp3"; done work?
Nope.
OK, you'll have to use SED then or something else. NB, you'll have to escape any spaces, and single quotes - that's probably why the single quote attempt failed. If you have any files with ? or * in and poss some other characters, you may have to escape them too. Good luck!
Or try Martijn's approach.
Would it be possible to rename the files, then convert them, then rename them back? Try it out on one file first.
By renaming, do you mean removing the spaces etc, in the filenames?
Yes that's possible. But Martin has sent me version of his command line which does it all. Like an idiot, I didn't send my reply to the list but direct to Martijn so people may not have seen his final version.
But it works very well. I've now finished ripping the latest crop of CDs (I want them as MP3 files to play from USB in my car) but I'm hopeful that when the time comes to do some more ripping, I can remember that I've stored the email to enable me to find it again.
Can I issue a public thank you to both Steve and Martijn for their help. I wouldn't have managed to do it however long I'd struggled.