About 2,400,000 results
Open links in new tab
  1. How to compare strings in Bash - Stack Overflow

    Feb 10, 2010 · Bash always seemed backward with numeric evaluations using an operator consisting of a string (-eq) and string comparisons using a numeric operator "==" or "=" just …

  2. Bash test: what does "=~" do? - Unix & Linux Stack Exchange

    Jan 27, 2017 · I realize you said “read the bash man pages” but at first, I thought you meant read the man pages within bash. At any rate, man bash returns a huge file, which is 4139 lines (72 …

  3. bash - What's the difference between $@ and $* - Unix & Linux …

    13 You can review Bash Beginners Guide for more information. These to do pretty much the same thing with the difference of how it's separated: $* - Expands to the positional …

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

  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. bash - How to escape single quotes within single quoted strings

    Aug 9, 2009 · bash: !\x22: event not found One more alternative: this allows mixed expansion and non-expansion all within the same bash string Here is another demo of an alternative escaping …

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

    By default, Bash does not do this. This default behavior is exactly what you want if you are using Bash on the command line you don't want a typo to log you out! But in a script, you really want …

  8. bash - How to represent multiple conditions in a shell if statement ...

    Sep 30, 2010 · Bash (see conditional expressions) seems to preempt the classic and POSIX meanings for -a and -o with its own alternative operators that take arguments. With some care, …

  9. Passing parameters to a Bash function - Stack Overflow

    Jun 2, 2011 · Instead, Bash functions work like shell commands and expect arguments to be passed to them in the same way one might pass an option to a shell command (e.g. ls -l). In …

  10. What is 'bash' command in bash? - Ask Ubuntu

    Aug 1, 2020 · I just typed bash in Ubuntu's terminal and, it was like normal. But after that, I had to type exit twice. What is bash command in bash?