About 2,630,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 …

    Oct 27, 2021 · As far as I know, using & after the command is for running it in the background. Example of & usage: tar -czf file.tar.gz dirname & But how about …

  3. linux - What does $@ mean in a shell script? - Stack Overflow

    Apr 3, 2012 · (View Special parameters - Bash Manual) For instance, if you call ./someScript.sh foo bar then $@ will be equal to foo bar. If you do:./someScript.sh foo bar and then inside …

  4. How do AND and OR operators work in Bash? - Stack Overflow

    In bash, && and || have equal precendence and associate to the left. See Section 3.2.3 in the manual for details. So, your example is parsed as $ (echo this || echo that) && echo other And …

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

  6. bash - What does <<< mean? - Unix & Linux Stack Exchange

    Take a look at the Bash man page. This notation is part of what's called a here documents & here strings. It allows you the ability to generate multi-line data input as one continuous string. The …

  7. shell - Bash regex =~ operator - Stack Overflow

    The [[ ]] is treated specially by bash; consider that an augmented version of [ ] construct: [ ] is actually a shell built-in command, which, can actually be implemented as an external …

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

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

    Aug 3, 2020 · bash is a command interpreter, a shell, a program with an interface that interprets the commands that you put into it. When you call bash from bash, you simply start a new shell …

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

    cat foo.sh #!/bin/bash echo The parameters passed in are $@ echo The parameters passed in are $* ./foo.sh herp derp The parameters passed in are herp derp The parameters passed in …

Refresh