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

Search results for query: *

  • Users: Wildcatlg
  • Content: Threads
  • Order by date
  1. Wildcatlg

    Passing a variable to awk/gawk

    #!/bin/sh #Section: 04 #Name: Scott Deese my_awk="awk -v var=$1 ' /$var/ { print \$2 } ' " echo $my_awk schemas=`$my_awk database.txt` ive tried this many different ways and this was the last way describe by my teacher that doesnt work. I need to pass a variable from the sh shell to awk. the...

Part and Inventory Search

Back
Top