About 1,020,000 results
Open links in new tab
  1. What is the $? (dollar question mark) variable in shell scripting?

    I'm trying to learn shell scripting, and I need to understand someone else's code. What is the $? variable hold? I can't Google search the answer because they block punctuation characters.

  2. How to check if a file exists in a shell script - Stack Overflow

    Oct 17, 2016 · How to check if a file exists in a shell script Asked 9 years, 2 months ago Modified 1 year, 11 months ago Viewed 771k times

  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 do $? $0 $1 $2 mean in a shell script? - Stack Overflow

    I often come across $?, $0, $1, $2, etc in shell scripting. I know that $? returns the exit status of the last command: echo "this will return 0" echo $? But what do the others do? …

  5. linux - What is shell scripting? - Stack Overflow

    Jul 16, 2010 · What exactly is shell scripting? And what is Bash, Korn, and Expect? I use a few commands in a Linux terminal, is that shell scripting too? Again I am confused what exactly is …

  6. How to if/else statement in shell script - Stack Overflow

    Jan 7, 2014 · The if statement in shell uses the command [. Since [ is a command (you could also use 'test'), it requires a space before writing the condition to test. To see the list of conditions, …

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

  8. scripting - What is the difference between $@ and $* in shell …

    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 …

  9. Global environment variables in a shell script - Stack Overflow

    Apr 20, 2017 · 66 When you run a shell script, it's done in a sub-shell so it cannot affect the parent shell's environment (1). You want to source the script by doing:

  10. Is bash a programming language? - Stack Overflow

    Feb 24, 2015 · Qualified in the "it is all semantics that resolve around how you define programming language" Yes it is a shell, but associated with that shell is a set of rules and …