About 2,540,000 results
Open links in new tab
  1. bash - What is the purpose of "&&" in a shell command? - Stack …

    Oct 27, 2021 · Furthermore, you also have || which is the logical or, and also ; which is just a separator which doesn't care what happend to the command before.

  2. bash - Shell equality operators (=, ==, -eq) - Stack Overflow

    529 = and == are for string comparisons -eq is for numeric comparisons -eq is in the same family as -lt, -le, -gt, -ge, and -ne == is specific to bash (not present in sh (Bourne shell), ...). Using …

  3. bash - What does <<< mean? - Unix & Linux Stack Exchange

    Take a look at the Bash man page. This notation is part of what's called a here documents & here strings. It allows you the ability to generate multi-line data input as one continuous string. The …

  4. An "and" operator for an "if" statement in Bash - Stack Overflow

    Modern shells such as Bash and Zsh have inherited this construct from Ksh, but it is not part of the POSIX specification. If you're in an environment where you have to be strictly POSIX …

  5. How to compare strings in Bash - Stack Overflow

    Feb 10, 2010 · How do I compare a variable to a string (and do something if they match)?

  6. bash - Confusing use of && and - Unix & Linux Stack Exchange

    bash shell scripting control-flow Improve this question edited Nov 16, 2011 at 22:16 Gilles 'SO- stop being evil'

  7. shell - What does "-ne" mean in bash? - Stack Overflow

    Jul 17, 2013 · It doesn't mean anything "in bash". [ runs a command called test. -ne is an argument to the test command, not to bash, and you can find its documentation in man test.

  8. What is the meaning of read -r? - Unix & Linux Stack Exchange

    Mar 27, 2015 · 7 The Bash man page's section about read states that, by default... The backslash character (\) may be used to remove any special meaning for the next character read and for …

  9. sh - [: missing `]' in bash script - Stack Overflow

    Feb 9, 2016 · A bash function has no line numbers related to the FILE that contains the definition. NOW: The code is stored somewhere internally in the running instance of Bash - does it …

  10. How to increment a variable in bash? - Ask Ubuntu

    Jan 30, 2017 · #!/bin/bash # To focus exclusively on the performance of each type of increment # statement, we should exclude bash performing while loops from the # performance measure.