Aug 17, 2000 #1 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'.
I need some examples of how to simulate the user entering interactive commands into an application writen in 'C'.
Aug 21, 2000 #2 JuanDeMingo Programmer Aug 19, 2000 1 GB Can't do it in old awk, try nawk #!/bin/sh nawk' BEGIN { while((getline me - ) > 0) print me } Upvote 0 Downvote
Aug 21, 2000 Thread starter #3 techgeek Programmer Jul 26, 2001 4 US 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 } } Upvote 0 Downvote
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 } }