I have a BASH script that works but I need to skip over the .log files.
Here is the script - how do I get the "for movie ..." line to exclude all .log files in that directory?
#!/bin/bash
for movie in /home/smartdata/www/html/f
iles/encod
e/flv/*.* ; do
NEWNAME=`basename $movie`
NEWNAME="${NEWNAME%%.*}.fl
v"
NEWPATH=/home/smartdata/ww
w/html/fil
es/encodin
g/flv/$NEW
NAME
FINALPATH=/home/smartdata/
www/html/f
iles/encod
ed/flv/$NE
WNAME
mencoder "$movie" -o "$NEWPATH" -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mb
d=2:mv0:tr
ell:v4mv:c
bp:last_pr
ed=3 -lavfopts i_certify_that_my_video_st
ream_does_
not_use_b_
frames -vf scale=416:312 -srate 22050
mv $movie /var/www/html/files/encode
/flv/finis
hed/
mv $NEWPATH $FINALPATH
done
Start Free Trial