is there a way to pass a variable into an awk statement from out site the statement?
variable="hello world"
cat file| awk '
{
print "variable from outside awk:"variable
}'
where would we all be w/out awk...
how can I remove trailing space in the name variable in the following script:
cat flinf|$search1|$search2| awk '
{
ref_cmd=substr($0,34,20)
if ($0~/\.txt/) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.