Monday, 26 December 2016

Shell Script 10: Conditions & If-Then Statements ( b)

jtony@genoa:~/learn/shell$ cat testString.sh
#!/bin/bash

#if test $1 = $2
if test $1 != $2
  then
  #echo "$1" is same with "$2"
  echo "$1" is NOT same with "$2"
fi

echo "This comes after if-then unconditionally."

No comments:

Post a Comment