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

    530 = and == are for string comparisons -eq is for numeric comparisons -eq is in the same family as -lt, -le, -gt, -ge, and -ne == is specific to bash (not present in sh (Bourne shell), ...). Using …

  2. How to increment a variable in bash? - Ask Ubuntu

    #!/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.

  3. bash - What is the purpose of .bashrc and how does it work? - Unix …

    I found the .bashrc file and I want to know the purpose/function of it. Also how and when is it used?

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

  5. cron ignores variables defined in ".bashrc" and ".bash_profile"

    When Bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its value if it appears there, and uses the expanded …

  6. Reset the password in Ubuntu / Linux Bash in Windows

    520 Run bash and make a note of your Linux username (this need not match your Windows username), see How can I find out my user name? Close Bash on Ubuntu if it is running (or the …

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

    Modern shells such as Bash and Zsh have inherited this construct from Ksh, but it is not part of the POSIX specification. If you're in an environment where you have to be strictly POSIX …

  8. How do I loop through only directories in bash?

    For an answer specific to bash (and to some degree, the zsh shell), see the second part of rubo77's wiki answer, where dotglob and nullglob is being used to correctly loop over the …

  9. Where is .bash_profile? - Ask Ubuntu

    In any case, bash always supports tilde expansion and the point of .bash_profile is that only bash runs commands from it, so . ~/.profile is fine.) The . builtin sources a file, which is to say it runs …

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