i have a file a.txt which contains
"ysm.set.ac4-qa.sds.audit
add yinst setting yti. YTI_
HOST_OVERRIDE =qa-sav-midas-002.ysm.ac4.yahoo.com"
I have variable STR which is dynamically assigned the value
"HOST_OVERRIDE=qa-sav-midas-002.ysm.ac4.yahoo.com"
I need to grep $STR on the file a.txt as `grep "$STR" a.txt `
But because of the spaces before =, the line is not getting printed. But my program definetely needs it to be printed ignoring the spaces. Is there any way to achieve it..?
Please reply any one.
Thanks
Srujana