About 2,570,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 do the -n and -a options do in a bash if statement?

    The switches -a and -n are not strictly part of a bash if statement in that the if command does not process these switches. What are primaries? I call them "switches", but the bash …

  3. 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, 4 months ago Viewed 988k times

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

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

  6. shell - What does "-ne" mean in bash? - Stack Overflow

    Jul 17, 2013 · It doesn't mean anything "in bash". [ runs a command called test. -ne is an argument to the test command, not to bash, and you can find its documentation in man test.

  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. How to increment a variable in bash? - Ask Ubuntu

    Jan 30, 2017 · #!/bin/bash # To focus exclusively on the performance of each type of increment # statement, we should exclude bash performing while loops from the # performance measure.

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

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