Answers for "shell script if and"

0

if statement in shell script

if [ "$result" == "1" ]
    then 
      echo "test" >> /home/samurai/test.txt
    fi
    

    
    if [[ "$result" -eq "1" ]]
    then 
      echo "test" >> /home/samurai/test.txt
    fi
Posted by: Guest on August-12-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language