Open links in new tab
  1. 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 …

  2. 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 $@

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

    Shell equality operators (=, ==, -eq) Asked 12 years, 1 month ago Modified 3 years, 7 months ago Viewed 651k times

  4. What is the purpose of "&&" in a shell command? - Stack Overflow

    Oct 27, 2021 · The shell will try to create directory test and then, only if it was successful will try create file inside it. So you may interrupt a sequence of steps if one of them failed.

  5. scripting - What does $$ mean in the shell? - Stack Overflow

    Sep 17, 2008 · 2 The $$ is the process id of the shell in which your script is running. For more details, see the man page for sh or bash. The man pages can be found be either using a command line "man …

  6. Shell scripting: -z and -n options with if - Unix & Linux Stack Exchange

    Jan 20, 2025 · You can find a very nice reference for bash's [ aka test builtin's operators here, or by running help test in a bash shell or info bash test or info bash '[' from any shell¹. If you are using a …

  7. regex - Meaning of "=~" operator in shell script - Stack Overflow

    Sep 17, 2012 · Meaning of "=~" operator in shell script [duplicate] Asked 13 years, 4 months ago Modified 12 years, 5 months ago Viewed 96k times

  8. What is the meaning of $? in a shell script? - Unix & Linux Stack …

    Feb 20, 2011 · When going through one shell script, I saw the term "$?". What is the significance of this term?

  9. What is the difference between $@ and $* in shell scripts?

    Jul 22, 2018 · In shell scripts, what is the difference between $@ and $*? Which one is the preferred way to get the script arguments? Are there differences between the different shell interpreters about …

  10. How can I declare and use Boolean variables in a shell script?

    Could we agree that it would be ok to use this simplified syntax inside a function with explicitly declared local "bools"? If one writes a substantial shell script, and has to worry about external scopes fiddling …