Passing bash variable to awk

前端 未结 2 514
北荒
北荒 2021-01-21 00:20

I\'m trying to extract a row/column element from a text table using awk within a function in bash. Specifically:

getel() {
    awk -v col=$3 \'FNR==$2 {print $c         


        
2条回答
提交回复
热议问题