Edited wiki page Example_script through web user interface.

This commit is contained in:
Louwrentius@gmail.com 2011-12-28 23:11:24 +00:00
parent afe7cb074c
commit 12899773ef
1 changed files with 1 additions and 11 deletions

View File

@ -16,19 +16,9 @@ This is the code.
SRC="$1"
DEST="$2"
TYPE=`file -b "$SRC"`
RES=`echo "$TYPE" | grep "WAVE audio"`
if [ ! "$?" == "0" ]
then
echo "File $FILE is not a wav file..."
echo "Type is $TYPE"
exit 0
fi
BASENAME=`basename "$SRC"`
MP3FILE="`echo ${BASENAME%wav}mp3`"
lame --quiet --preset insane "$SRC" "$DEST/$MP3FILE"
exit "$?"
}}}
}}}