If / Else Statements (Shell/bash Scripting) | Sany's Linux and Open Source Blog
Shell scripts use fairly standard syntax for if statements. The conditional statement is executed using either the test command or the [ command ]. In its most basic form an if statement is: #!/bin/bash if [ "$1" -eq "abc" ] then echo "in if block" fi (No
viewsby.wordpress.com |