About 51 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. shell - Bash regex =~ operator - Stack Overflow

    Oct 18, 2013 · The =~ operator is a regular expression match operator. This operator is inspired by Perl's use of the same operator for regular expression matching. The [[ ]] is treated specially by bash; …

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

    If not quoted, it is a pattern match! (From the Bash man page: "Any part of the pattern may be quoted to force it to be matched as a string."). Here in Bash, the two statements yielding "yes" are pattern …

  4. Meaning of $? (dollar question mark) in shell scripts

    Aug 1, 2019 · What does echo $? mean in shell programming? true echo $? # echoes 0 false echo $? # echoes 1 From the manual: (acessible by calling man bash in your shell) ? Expands to the exit status …

  5. How do AND and OR operators work in Bash? - Stack Overflow

    How do AND and OR operators work in Bash? Asked 13 years, 1 month ago Modified 2 years, 10 months ago Viewed 22k times

  6. arguments - What is $@ in Bash? - Stack Overflow

    Oct 10, 2010 · I reckon that the handle $@ in a shell script is an array of all arguments given to the script. Is this true? I ask because I normally use search engines to gather information, but I can't …

  7. linux - What does $@ mean in a shell script? - Stack Overflow

    Apr 3, 2012 · What does a dollar sign followed by an at-sign (@) mean in a shell script? For example: umbrella_corp_options $@

  8. Difference between ${} and $() in Bash - Stack Overflow

    I have two questions and could use some help understanding them. What is the difference between ${} and $()? I understand that () means running command in separate shell and placing $ means passing...

  9. 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 compliant, stay …

  10. What's the meaning of the parameter -e for bash shell command line?

    123 I have as bash shell script with header #!/bin/bash -e. When I run the script, it will be interrupted after the grep command runs, but when I remove the parameter -e, then the script can be run …