On Fri, Apr 25, 2014 at 11:40:38AM +0100, Chris Walker wrote:
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 what I meant.
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.
Excellent!