Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash inline operator

[ $(echo "one line"|wc -l) = '2' ] && echo "no"

[ $(echo "one line"|wc -l) = '1' ] && echo "yes"
 
PREVIOUS NEXT
Tagged: #bash #inline #operator
ADD COMMENT
Topic
Name
1+8 =