Created wiki page through web user interface.

This commit is contained in:
Louwrentius@gmail.com 2011-12-28 23:06:09 +00:00
parent af977abccc
commit 2f6b22e4d5
1 changed files with 24 additions and 0 deletions

24
wiki/Example_script.wiki Normal file
View File

@ -0,0 +1,24 @@
#summary script showing usage of PPSS variables
{{{
#!/usr/bin/env bash
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 "$?"
}}}