On Mon, 16 Jul 2007, Mike Miller wrote: > #!/bin/bash > IFS=" > " > for i in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS > do > if [ -d "$i" ] > then > cd "$i" > for file in `\ls -` *.flac | perl -pe 's/^(.*)\.flac$/$1/'` ; do That line had a typo: a back tick was supposed to be a 1: for file in `\ls -1 *.flac | perl -pe 's/^(.*)\.flac$/$1/'` ; do That should help a lot! Mike > flac -d "${file}.flac" > lame -V 0 "${file}.wav" "${file}.mp3" > # rm -f "${file}.wav" > # cd - > done > fi > done > > > The perl bit is just taking the .flac extension off of the filename so > that you can use the rest of the file name with .wav, .mp3, or whatever. > > Mike > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list >