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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Here Documents

Status
Not open for further replies.

techgeek

Programmer
Jul 26, 2001
4
US
I need some examples of how to simulate the user entering interactive commands into an application writen in 'C'.
 
Can't do it in old awk, try nawk #!/bin/sh nawk' BEGIN { while((getline me - ) > 0) print me }
 
Thanks, this seems to work but the
program that takes the input fails after a few
iterations. Maybe the input is too fast for the program?



awk -f tokenScript.awk theInput.txt

------- script file ----------
BEGIN {FS = ","}
{
for (i = 1; i <= NF ; i++)
{
print $i
}
}
 
Status
Not open for further replies.

Similar threads

Replies
9
Views
60

Part and Inventory Search

Sponsor

Back
Top