i have a var called fname="req_detail_TAM.dat"
and is have a search string var as tmp="TAM".
Now my requirement is i need to check whether a "fname" is contains "search str" or not. if search string is part of the filename, then i need to store value 1 in a variable called "flag" else i need to assign 0 to flag.
I can i do that inside a shell script.
vi test
fname=="req_detail_TAM.dat"
tmp="TAM"
flag=`--- command --`