mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
14 lines
168 B
Bash
14 lines
168 B
Bash
#!/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'
|