Francisco Chaves Posted on Jan 7, 2021 if on the command line #linux #bash #shell Hello guys, today I will leave a quick tip on how to make comparisons on the Linux command line using Shell Script. Examples: [ 1 == 1 ] && echo 1 || echo 0 Enter fullscreen mode Exit fullscreen mode Result is 1 [ 1 == 3 ] && echo 1 || echo 0 Enter fullscreen mode Exit fullscreen mode Result is 0 Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)