#!/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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.