corkbuster
MIS
I am trying to search a text file for a string. I create the search criteria as:
STR="STRING GOES HERE"
when I try to search for this string by
grep $STR $FILE
the quotes are stripped off and the grep is incorrect. If I execute:
grep \"$STRING\" $FILE
the grep seems to be ok, but never executes.
What am I doing wrong.
HP-UX 11.00
STR="STRING GOES HERE"
when I try to search for this string by
grep $STR $FILE
the quotes are stripped off and the grep is incorrect. If I execute:
grep \"$STRING\" $FILE
the grep seems to be ok, but never executes.
What am I doing wrong.
HP-UX 11.00