Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash single line if-else condition

[[ ${value} > 0 ]] && result="yes" || result="no"
Source by yarimdunya.com #
 
PREVIOUS NEXT
Tagged: #bash #single #line #condition
ADD COMMENT
Topic
Name
5+9 =