Hi All,
I would like to find out the existence of files with wild card using CSH.
I have used the below code but does not seem to work.
Can any expert give me some advice ?
Code:
set nonomatch
set pattern = "_xxx"
set filetype = ( *$pattern* )
if ( -e $filetype) then
echo "FILES with $pattern EXISTS"
else
echo "FILES with $pattern DOES NOT EXISTS"
endif