3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 483
/ 2 Years ago, thu, february 24, 2022, 12:24:35
I want to use user input of special characters in conditional statement.
I tried:
read -p "press arrow up" foo
if [ $foo == "^[[A" ]; then echo yes; fi
It did not do what I wanted it to do.
More From » command-line