Hi Stuart,

Try this

*folder=/home/stu/test
files=`ls $folder`*
for f in $files
do
if [ -f $f ] # check to see if $f is a file
then
echo $f is a file!
echo "Processing $f file..."
vlc $f
else
echo $f is not a file!
continue # do nothing with the file; starts the next iteration..
fi
done

On 1 January 2012 15:49, Stuart Bird <e_tect...@yahoo.co.uk> wrote:

> FILES=/home/stu/test/*
_______________________________________________
Peterboro mailing list
Peterboro@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to