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

    Shell equality operators (=, ==, -eq) Asked 12 years, 1 month ago Modified 3 years, 7 months ago Viewed 651k times

  2. shell - Difference between sh and Bash - Stack Overflow

    Shell - "Shell" is a program, which facilitates the interaction between the user and the operating system (kernel). There are many shell implementations available, like sh, Bash, C shell, Z …

  3. What does $# mean in shell? - Unix & Linux Stack Exchange

    What does $# mean in shell? I have code such as if [ $# -eq 0 ] then I want to understand what $# means, but Google search is very bad for searching these kinds of things.

  4. How to highlight bash/shell commands in markdown?

    Here shell is an alias for bash. Chroma has something called Session. Pygments (doc) uses console, shell-session for bash sessions, pwsh-session, ps1con for power shell sessions and …

  5. What is the purpose of "&&" in a shell command? - Stack Overflow

    Oct 27, 2021 · The shell will try to create directory test and then, only if it was successful will try create file inside it. So you may interrupt a sequence of steps if one of them failed.

  6. How do I check if a directory exists or not in a Bash shell script?

    What command checks if a directory exists or not within a Bash shell script?

  7. shell - How to concatenate string variables in Bash - Stack Overflow

    Nov 15, 2010 · A bashism is a shell feature which is only supported in bash and certain other more advanced shells. It will not work under busybox sh or dash (which is /bin/sh on a lot of …

  8. shell - Redirect stderr and stdout in Bash - Stack Overflow

    I want to redirect both standard output and standard error of a process to a single file. How do I do that in Bash?

  9. Replace a string in shell script using a variable - Stack Overflow

    Jul 22, 2010 · Maybe also point out that switching from single to double quotes requires any $ or ` in the sed script to be escaped with a backslash, to protect it from the shell's substitution …

  10. shell - How can I compare numbers in Bash? - Stack Overflow

    BTW, in bash a semi-colon is a statement separator, not a statement terminator, which is a new-line. So if you only have one statement on a line then the ; at end-of-line are superfluous. Not …