我想从一个变量到另一个变量的特定行。我试过这个,但它不起作用:
c="1.apple 2.banna 3.peach" read "Please choose fruit [1-3]:" t a=$c | awk "NR==$t" echo "You choose: $a"
我的错误是什么?
command-line shell bash awk variable
awk ×1
bash ×1
command-line ×1
shell ×1
variable ×1