Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How awk references variables in shell scripts

Shulou Source: shulou.com Published: 2022-06-01 08:03:47 11月26日 Update

[root@localhost ~] # aq123

[root@localhost ~] # echo "1" | sed's Universe 1 / "'$a'" /'

"123"

[root@localhost ~] # echo "1" | sed's Uniqq1max

one hundred and twenty three

[root@localhost ~] # awk 'BEGIN {print' $a'}'

one hundred and twenty three

[root@localhost ~] # awk 'BEGIN {print' "$a"'}'

one hundred and twenty three

Tags: Variables methods scripts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Shulou Information NVidia Shulou Tech Info