Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Boolean-values/UNIX-Shell/boolean-values-1.sh
Normal file
8
Task/Boolean-values/UNIX-Shell/boolean-values-1.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
if
|
||||
echo 'Looking for file' # This is the evaluation block
|
||||
test -e foobar.fil # The exit code from this statement determines whether the branch runs
|
||||
then
|
||||
echo 'The file exists' # This is the optional branch
|
||||
echo 'I am going to delete it'
|
||||
rm foobar.fil
|
||||
fi
|
||||
1
Task/Boolean-values/UNIX-Shell/boolean-values-2.sh
Normal file
1
Task/Boolean-values/UNIX-Shell/boolean-values-2.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
true && echo "true" || echo "false"
|
||||
Loading…
Add table
Add a link
Reference in a new issue