shell/结构化命令/if-then语句.sh

13 lines
163 B
Bash
Raw Normal View History

2016-05-13 21:42:54 +08:00
#!/bin/bash
#testing the if statement
if date
then
echo "it worked"
fi
echo -e '\n'
if asd
then
echo "it not worked"
fi
echo 'We are outside the if statement'