Difference between revisions of "Bash operators"
Jump to navigation
Jump to search
(Created page with " * <code>&&</code> and <code>||</code> operator == See also == * {{Bash}} Category:Bash") |
|||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
+ | n=55 | ||
+ | if (( $n >= 55 )) | ||
+ | then | ||
+ | echo "The number is greater than or equal to 55" | ||
+ | else | ||
+ | echo "The number is less than 55" | ||
+ | fi | ||
+ | |||
+ | |||
+ | == Activities == | ||
+ | * Review: https://tldp.org/LDP/abs/html/comparison-ops.html | ||
Latest revision as of 13:24, 26 October 2020
n=55 if (( $n >= 55 )) then echo "The number is greater than or equal to 55" else echo "The number is less than 55" fi
Activities[edit]
See also[edit]
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: