Quote:
Originally Posted by jim mcnamara
awk does not know about pattern:
awk -v pattern=$pattern"
Use the -v option. Plus pattern is misspelled as "pettern".
Please use code tags when you post code.
|
hey,
Thanks for reply
Could you
please tell me where i should mention -v option in awk, as awk is used twice in the code ? Now, how my script should look like ?
Thanks, I did notice the typo error for pattern. Thanks anyways.
And when i was running the above script then it given me error saying:
Syntax error at line 11 : `(' is not expected.
Please tell me.
