Hi,
I need to use if condition for search a file pattern on a particular location.
cd $file_Path
if [ <*.file* exists>] || [ <*.file exist>]
then
do this
else
do that
fi
Can someone help me with the if part, how i can put those conditions?
make sure format should be *.file* and *.file
file is a keyword which i have to have use to search the file.
When I am using in the above way....it is actually searching for *.file*, but i want to use * as a wild character and not to search a file which starts with *.