Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runnng nawk

Status
Not open for further replies.

IMAUser

Technical User
May 28, 2003
121
CH
I have a nawk script file which I run from the command prompt like

$ nawk -f scriptname.aw datafilename.dat


Can I embed the contents of the scriptname.aw file within a shell script.

So I have a shell script which does all kind sof things
..........
........
.........
Here can I copy the contents of scriptname.aw file
...........

In that case where does the command nawk come and where do I say the datafilename.dat

TIA
 
#!/bin/ksh
# this is my shell script


# do my shell scriptin' stuff here

nawk '
here is the content of 'scriptname.aw'
' datafilename.dat

# MORE of my shell scriptin' stuff here


vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top