Guest_imported
New member
- Jan 1, 1970
- 0
Hi, just a quick newbie question,
I'm writing a script which takes a filename as a parameter and I'm writing the error messages such as -
if [ -d $file ] then echo "$file is a directory"
but how do I create one that is returned when there is a particular character or string in the name of the file ?
many thanks
I'm writing a script which takes a filename as a parameter and I'm writing the error messages such as -
if [ -d $file ] then echo "$file is a directory"
but how do I create one that is returned when there is a particular character or string in the name of the file ?
many thanks