Wednesday, November 8, 2017

if statement inside awk command

awk -F',' '{ if($1=='"$accountNum"') { print $3.$2 } }' Accounts

reference: https://unix.stackexchange.com/questions/145623/awk-with-if-statements

No comments:

Post a Comment