Am Donnerstag, den 08.12.2005, 00:46 +0000 schrieb Paul Smith: > > By the way, if one wants to use lame to get in format wav all mp3 > files in a directory, what should one do? > Though this isn't advanced shell scripting it should what you aked for. Get an idea on how to use bash. Others use /python/perl/... >>> Put it in a file >>> Move file into your path, e.g ~/bin >>> Chmod u+x #! /bin/sh # mp3towav_conversion.sh number=0 cd $1 || exit 1 for file in *.mp3 do wavfile=`echo $file | sed -e "s/mp3/wav/g"` echo $"Converting $file ..." lame $file $wavfile echo $"Done" let "number += 1" done echo $"$number file(s) converted" exit 0 $ mp3towav_conversion.sh $/path/to/dir$ Have fun. Thomas
Attachment:
signature.asc
Description: This is a digitally signed message part