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

    It depends on the Test Construct around the operator. Your options are double parentheses, double brackets, single brackets, or test. If you use ((…)), you are testing arithmetic equality …

  2. What's the difference between <<, <<< and < < in bash?

    Sep 27, 2015 · What's the difference between <<, <<< and < < in bash?Here document << is known as here-document structure. You let the program know what will be the ending text, and …

  3. How do I iterate over a range of numbers defined by variables in …

    Oct 4, 2008 · Related discusions: bash for loop: a range of numbers and unix.stackexchange.com - In bash, is it possible to use an integer variable in the loop control of a for loop?

  4. An "and" operator for an "if" statement in Bash - Stack Overflow

    An "and" operator for an "if" statement in Bash Asked 12 years, 11 months ago Modified 1 year, 3 months ago Viewed 987k times

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

  6. linux - Is there a way to exit a Bash script, but not quitting the ...

    When I use exit command in a shell script, the script will terminate the terminal (the prompt). Is there a way to terminate a script and then staying in the terminal? My script run.sh is expected to

  7. How do I get the directory where a Bash script is located from …

    How do I get the path of the directory in which a Bash script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directo...

  8. What does the -e do in a bash shebang? - Unix & Linux Stack …

    All the bash command line switches are documented in man bash. -e Exit immediately if a pipeline (which may consist of a single simple command), a subshell command enclosed in …

  9. bash - How to call one shell script from another shell script?

    I have two shell scripts, a.sh and b.sh. How can I call b.sh from within the shell script a.sh?

  10. shell - Difference between sh and Bash - Stack Overflow

    When writing shell programs, we often use /bin/sh and /bin/bash. I usually use bash, but I don't know what's the difference between them. What's the main difference between Bash and sh? …