1

print user variable input

view story
linux-howto

http://www.unix.com – this may be basic thing for everyone here, but i cant push awk to print the variable user input which is INS, please help. code: Code: INS=$1 printf '\n' symdg list | grep $INS-clone | awk -v i=$INS '{ID=substr($4,9,4)}{print "Device Group: "$1,"at Array "ID,i}' output: Code: $ ./test.sh patty awk: syntax error near line 1 awk: bailing out near line 1 (HowTos)