Skip to content
Snippets Groups Projects
Commit 76dd9f26 authored by Bhagyashree Patra's avatar Bhagyashree Patra
Browse files

xyz

parent e451cf65
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# # Basics
# num=4
# if test $num -gt 5
# then
# echo "yes"
# else
# echo "no"
# fi
# num=4
# if [ $num -le 5 ]
# then
# echo True
# else
# echo False
# fi
# # if /etc/passwd exist then echo whew
# if [ -e /etc/passwd ]
# then
# echo "whew"
# else
# echo "uh-oh"
# fi
# # or
# if [ -e /etc/passwd ]
# then
# echo "whew"
# fi
# # Single line
# [ ! -e /etc/passwd ] || echo "whew"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment