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 …

  2. bash - What is the purpose of "&&" in a shell command? - Stack …

    Dec 22, 2010 · Furthermore, you also have which is the logical or, and also which is just a separator which doesn't care what happend to the command before.

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

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

  6. 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, …

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

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

  10. bash - How do I add environment variables? - Ask Ubuntu

    Aug 27, 2011 · To set an environment variable once, use the export command in the prompt, not in a shell script: $ export THEVAR=/example The variable will be set for the rest of the shell …