About 2,440,000 results
Open links in new tab
  1. bash - What are the special dollar sign shell variables ... - Stack ...

    Sep 14, 2012 · In Bash, there appear to be several variables which hold special, consistently-meaning values. For instance, ./myprogram &; echo $! will return the PID of the process which …

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

    If not quoted, it is a pattern match! (From the Bash man page: "Any part of the pattern may be quoted to force it to be matched as a string."). Here in Bash, the two statements yielding "yes" are pattern …

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

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

  6. How do I get the directory where a Bash script is located from within ...

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

  7. 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? What do we ...

  8. linux - What does 'bash -c' do? - Stack Overflow

    155 Quoting from man bash: -c string If the -c option is present, then commands are read from string. If there are arguments after the string, they are assigned to the positional parameters, starting with $0.

  9. What does 'set -e' mean in a Bash script? - Stack Overflow

    74 As per bash - The Set Builtin manual, if -e / errexit is set, the shell exits immediately if a pipeline consisting of a single simple command, a list or a compound command returns a non-zero status.

  10. How to output a multiline string in Bash? - Stack Overflow

    Jun 10, 2012 · How to output a multiline string in Bash? Asked 13 years, 6 months ago Modified 1 year, 8 months ago Viewed 613k times