Awk: Difference between revisions

From miki
Jump to navigation Jump to search
(New page: == References == * [http://www.vectorsite.net/tsawk.html An Awk Primer (good tutorial on Awk)])
 
Line 1: Line 1:
== References ==
== References ==
* [http://www.vectorsite.net/tsawk.html An Awk Primer (good tutorial on Awk)]
* [http://www.vectorsite.net/tsawk.html An Awk Primer (good tutorial on Awk)]

== Tips ==
* '''Defining environment variable''' - Using an ''Awk'' script and Bash builtin '''eval'''
<source lang="bash">
eval $(awk 'BEGIN{printf "MY_VAR=value";}')
echo $MY_VAR
</source>

Revision as of 09:44, 25 August 2009

References

Tips

  • Defining environment variable - Using an Awk script and Bash builtin eval
eval $(awk 'BEGIN{printf "MY_VAR=value";}')
echo $MY_VAR