How to compare a variable to a string in bash?

后端 未结 0 1458
感情败类
感情败类 2020-12-04 20:11

here is how i tried it

while IFS= read line 
do
    var=$(cut -d ":" -f 3 $line)
    if [ "$var" = "L2" ]
    then :here is my a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题