shell script -- awk variable substitution
Hi,
I have a script in which I'm reading a file line by line and I'm finding certain position value using awk index as Code:
# 2 spaces before open parens Quote:
Code:
awk: { print index("CALL ECHO ( BUILD ("person id: " , REQUEST -> PERSONID ))"," (")} Thanks |
Code:
Line1='CALL ECHO ( BUILD ("person id: " , REQUEST -> PERSONID ))' Code:
# 2 spaces before open parens |
why are you using "-v Line=$Line" when you are not using it in your awk command ?
What is $Line? Code:
awk -v Line="$Line" '{ print index(Line, ...) }' |
All times are GMT -5. The time now is 10:49 PM. |