If statements with multiple arguments and wildcards
I've been trying to update an existing script that has been written in csh, but cannot work out how to get an if statement to work with multiple arguments.
What I want to do is:
if 2 files exist in a single directory then run script_1, otherwise run script_2
The code I have is:
if (-e $dir/path/image-a-*) & (-e $dir/path/image-ab-*) then
echo "no files found"
I need to use wildcards for the file names because only the beginning of the name is the same.