Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Shell variable in AWK
Name: dk0871 Date: December 23, 2004 at 13:45:58 Pacific OS: Sun OS 5.6 CPU/Ram: Not Known
Comment:
I need some help of how to use shell variable in awk '{action}' section? Tried several way doesn't seem to be get it right.
Summary: I answered the question in this forum of how to embed shell variables in awk in back on Feb 5: http://www.computing.net/unix/wwwbo... If you read the thread mentioned in my answer, it says that the -v...
Summary: Hi i've been trying to write shell script with awk that I want to search a substring with variable of shell script In old one ,I wrote awk that find 'xxx' in myfile : #!/bin/ksh awk '/xxx/' myfile...
Summary: Hi, Im trying to set variables in awk script but does not work, I dont know what Im doint wrong, this is my script. #!/bin/sh snmp-cpu="`snmpwalk -v 1 -c public -Oqv 10.10.1.1 1.3.6.1.4.1.9.2.1.58.0`...