pass variable to awk from outside
October 17th, 2006 mysurface
Many people uses awk in their shell script, but they need to pass variable to awk for manipulation, it is not difficult, bellow is a simple example. awk ‘END { print myval }’ myval=`pwd` data.txt This example is to show you, I successfully pass a value from outside, at the END of the manipulation, print [...]
Posted in awk, Bash, Text Manipulation | Hits: 23348 | 2 Comments »






