About 1,030,000 results
Open links in new tab
  1. bash - Shell equality operators (=, ==, -eq) - Stack Overflow

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

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

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

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

  6. shell - How can I compare numbers in Bash? - Stack Overflow

    BTW, in bash a semi-colon is a statement separator, not a statement terminator, which is a new-line. So if you only have one statement on a line then the ; at end-of-line are superfluous. Not …

  7. shell - Difference between single and double quotes in Bash

    Jul 14, 2011 · Double quotes act similarly to single quotes, except double quotes still allow the shell to interpret dollar signs, back quotes and backslashes. It is already known that …

  8. shell - How to concatenate string variables in Bash - Stack Overflow

    Nov 15, 2010 · This is the most useful answer for shell scripting. I have found myself the last 30 minutes because I had a space before and after the equal sign!!

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

  10. 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)?