Difference between revisions of "Bash"

From John Freier
Jump to: navigation, search
(Created page with " == One line conditional == Both the following lines will write to the screen "false" 1 == 0 || echo "text" 1 == 1 && echo "text"")
(No difference)

Revision as of 16:19, 29 April 2021

One line conditional

Both the following lines will write to the screen "false"

  1 == 0  || echo "text"
  1 == 1  && echo "text"