Yo! You are the man! The only thing that I had to add was a variable for the directory containing the files. It is really great to know how to check for file in directories before an application launches too!
Code:
var=/dir/dir/
if ls $var*.[Aa][Vv][Ii] > /dev/null 2>&1
---------- Post added 10-02-11 at 02:20 PM ----------
Yo! You are the man! The only thing that I had to add was a variable for the directory containing the files. It is really great to know how to check for file in directories before an application launches too!
Code:
var=/dir/dir/
if ls $var*.[Aa][Vv][Ii] > /dev/null 2>&1