About 378,000 results
Open links in new tab
  1. Is bash scripting the same as shell scripting? - Ask Ubuntu

    Nov 30, 2014 · So, when someone talks about bash scripting, he's using a shell, but when someone is talking about shell scripting, he isn't per se using bash. But as bash is commonly used in scripting for …

  2. What is $* and $# in Linux? - Super User

    What do the following environment variables in Linux mean? What is $* (dollar sign followed by an asterisk)? What is $# (dollar sign next to a hash mark/number sign/octothorpe/pound sign)?

  3. linux - Difference between $ {} and $ () in a shell script - Super User

    $(command) is “command substitution”. As you seem to understand, it runs the command, captures its output, and inserts that into the command line that contains the $(…); e.g., $ ls -ld $(date +%B).txt …

  4. linux - Difference between [ [ ]] AND [ ] or ( ( )) AND ( ) in Bash ...

    Mar 19, 2020 · What is [? [ performs a test. The purpose of [ is to test something (e.g. if some file exists) and to return exit status zero if the test succeeds, non-zero otherwise. [ is a command. [ is a …

  5. linux - How to test if a variable is equal to a number in shell - Super ...

    Dec 16, 2013 · More information: Bash Comparison Operators SO: What is the difference between operator “=” and “==” in Bash? Unix & Linux SE: Bash: double equals vs -eq

  6. What is the meaning of exit 0, exit 1, and exit 2 in a bash script?

    Mar 14, 2017 · A bash script is like a movie theater, there are different exists. The exit statements mark the location of the exits for the bash interpreter. When the script is fired, the interpreter is required to …

  7. What does >&2 mean in a shell script? - Ask Ubuntu

    Oct 20, 2019 · Bash command that prints a message on stderr echo >&2 “some text” what does it mean in shell scripting In your command posted, both messages for stdout and stderr will appear on your …

  8. What's is the difference between ">" and ">>" in shell command?

    Nov 27, 2013 · Could someone explain to me the difference between > and >> when using shell commands? Example: ps -aux > log ps -aux >> log It seems the result is the same either way.

  9. bash - How can I compare a variable to a text string, rather than ...

    Explore related questions bash shell-script bash-scripting See similar questions with these tags.

  10. linux - What does <<EOF do? - Super User

    Nov 22, 2015 · An excerpt from Shell Input/Output Redirections: Here Document A here document is used to redirect input into an interactive shell script or program. We can run an interactive program …