Technology Blog
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment