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

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

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

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

  6. 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? What ...

  7. bash - What does " 2>&1 " mean? - Stack Overflow

    I am thinking that they are using & like it is used in c style programming languages. As a pointer address-of operator. Consider the following options: 2>1 would represent 'direct file 2 to file 1'., …

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

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

  10. 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 doing any …