About 1,030,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. 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 …

  3. scripting - Meaning of $? (dollar question mark) in shell scripts ...

    Aug 1, 2019 · Meaning of $? (dollar question mark) in shell scripts Asked 14 years, 3 months ago Modified 7 months ago Viewed 338k times

  4. 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, 1 month ago Modified 1 year, 10 months ago Viewed 769k times

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

    395 What is the difference between =, == and -eq in shell scripting? Is there any difference between the following?

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

    Feb 20, 2011 · This latter usage is faster, does not contaminate the shell's variable namespace with what amounts to temp variables, can often be a lot more readable for humans and …

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

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

  9. When do we need curly braces around shell variables?

    In shell scripts, when do we use {} when expanding variables? For example, I have seen the following:

  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 …