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

Recent content by obtuse

  1. obtuse

    how can I input from keyboard in awk

    I am the originator of this thread. I finally got hold of a UNIX guru I know and he suggested the following. It seems to work with most versions of awk nawk gawk, etc. printf "Enter your name: " system("read a; echo $a") | getline name print name I hope this may help...
  2. obtuse

    how can I input from keyboard in awk

    I need to input data from the keyboard in awk.The only reference I can find in any of my AWK books is to do the following: BEGIN { printf &quot;Enter your name: &quot; getline name < &quot;-&quot; print name } This was accompanied by the footnote that not all versions of awk/nawk/gawk/etc...

Part and Inventory Search

Back
Top