Edited wiki page Example_script through web user interface.
This commit is contained in:
parent
afe7cb074c
commit
12899773ef
@ -16,16 +16,6 @@ This is the code.
|
|||||||
SRC="$1"
|
SRC="$1"
|
||||||
DEST="$2"
|
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"`
|
BASENAME=`basename "$SRC"`
|
||||||
MP3FILE="`echo ${BASENAME%wav}mp3`"
|
MP3FILE="`echo ${BASENAME%wav}mp3`"
|
||||||
lame --quiet --preset insane "$SRC" "$DEST/$MP3FILE"
|
lame --quiet --preset insane "$SRC" "$DEST/$MP3FILE"
|
||||||
|
Loading…
Reference in New Issue
Block a user