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

    Oct 27, 2021 · $ command one && command two the intent is to execute the command that follows the && only if the first command is successful. This is idiomatic of Posix shells, and not …

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

    530 = 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 test: what does "=~" do? - Unix & Linux Stack Exchange

    Jan 27, 2017 · I realize you said “read the bash man pages” but at first, I thought you meant read the man pages within bash. At any rate, man bash returns a huge file, which is 4139 lines (72 …

  4. What's the difference between <<, <<< and < < in bash?

    Sep 27, 2015 · What's the difference between <<, <<< and < < in bash?Here document << is known as here-document structure. You let the program know what will be the ending text, and …

  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. What does &> do in bash? - Stack Overflow

    Jul 17, 2014 · All about redirection in bash What does &> do in bash? Regarding the erroneous git status 2&>1 > /dev/null... Can someone clarify the man page and explain exactly what is …

  7. 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 …

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

    #!/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.

  9. How do I iterate over a range of numbers defined by variables in …

    Oct 4, 2008 · Related discusions: bash for loop: a range of numbers and unix.stackexchange.com - In bash, is it possible to use an integer variable in the loop control of a for loop?

  10. How do I test if a variable is a number in Bash? - Stack Overflow

    Apr 30, 2009 · Bash does provide a reliable means of determining if a number is an INTEGER. { VAR="asdfas" ; ( ( VAR )) ; echo $?; } The equation will correctly fail if the answer is '0' …