Centiq Blog

Centiq Blog

Jan 06
2010

Shell variables in awk

Posted by: Steve Stringer in Infrastructure

Tagged in: Support

Steve Stringer

I'm currently writing a script which needs to parse a configuration file and for one reason or another I got in to the situation where I wanted awk to use one of my shell variables.  I had never needed to do this before so I searched for a little while before coming across a guide on Tek-Tips that explains three ways of doing this.

http://www.tek-tips.com/faqs.cfm?fid=1281

This link in now in my favourites and I'm sure I will come back to it again and again. 

Hits: 2776
Trackback(0)
Comments (0)Add Comment

Write comment

security code
Enter the displayed characters


busy

Request more information

Want us to contact you right now?

Leave your details and we'll call you Immediately during work hours.

Name: *
Company:
Phone: *

Bloggers

Emily MalbonEmily Malbon:
Helpdesk and Support

Rebecca PritchardRebecca Pritchard:
Project Management

Robin WebsterRobin Webster:
UNIX

Steven CalvertSteven Calvert:
Storage

Steve StringerSteve Stringer:
Blade and SAP BWA

Glyn HeathGlyn Heath:
IT Industry

Tags

tecniq_with_textv2ibm-premier-business-markIntelligent Insights from monitiq - enterprise system monitoring in the cloudhp partner 2011accredit_uk_logo v2