I would like to take a specific line from a variable to anther variable. I tried this but it doesn't work:
c="1.apple2.banna3.peach"read "Please choose fruit [1-3]:" ta=$c | awk "NR==$t"echo "You choose: $a"
What is my mistake?
Aucun commentaire:
Enregistrer un commentaire