[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash vs. python scripts - which one is better?



On Thu, 9 Aug 2007, mmiller3 wrote:

"Jeff" == Jeff D <fixedored@gmail.com> writes:

   > You would still have rename the file extention:

   > for FILE in *wav ; do lame -h -b 160 "$FILE" "`echo $FILE
   > |sed s/.wav/.mp3/g ` " ; done

Or just use the shell itself:

 for FILE in *wav ; do lame -h -b 160 \"$FILE\" \"${FILE%.*}.mp3\"; done

Mike


Makes even more sense! Thanks! I don't know how many times I've read over shell substitution, just never clicked I guess. But, it's always good to learn new tricks!

 -+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.



Reply to: