About 131,000 results
Open links in new tab
  1. Bash scripting missing ']' - Stack Overflow

    Jan 18, 2017 · I am getting an error ./test.sh: line 13: [: missing `]' in the file test.sh I tried using brackets and other options such as -a or by checking the size of the file p1 but the error is always there...

  2. Bash if statement [: missing - Unix & Linux Stack Exchange

    Your missing ]' error is because you need a space at the inbetween "Shared" and ], so the line should be if [ "$(ipcs | grep Shared | awk '{print $2}')" == "Shared" ]; then.

  3. bash - messaging.sh: line 29: [: missing `]' - Super User

    Jun 12, 2015 · Here follow three important ones: Always keep spaces between the brackets and the actual check/comparison. The following won’t work: Bash will complain about a "missing ']'". Source …

  4. command line - builtin [ , -bash: [: missing `]' - Ask Ubuntu

    Oct 15, 2018 · @Melebius :O You didn't need to do that! The answer was fine by itself, the edit was just supplementary information (and I could edit without CW anyway :P). Also, zsh user myself, so I …

  5. Bash Reference Manual

    Bash is the shell, or command language interpreter, for the GNU operating system. The name is an acronym for the ‘ Bourne-Again SHell ’, a pun on Stephen Bourne, the author of the direct ancestor …

  6. Bash Tutorial - W3Schools

    Bash is used to write scripts and run commands on Linux systems. It helps automate tasks, manage system operations, and boost productivity. Tip: Sign in to track your progress. A shell is a text-based …

  7. Bash Missing ' Error: Quick Fixes and Tips

    Explore solutions for bash missing '. This guide reveals tips and tricks to troubleshoot common bash errors with ease and clarity.

  8. Bash (Unix shell) - Wikipedia

    Bash function declarations which include this particular keyword are not compatible with Bourne/Korn/POSIX scripts, however, Bash does accepts the function declaration syntax used by …

  9. Bash Explained: How the Most Popular Linux Shell Works

    May 29, 2025 · This article answers the fundamental question What is Bash? and walks you through its history, features, usage, and practical applications. You’ll learn how Bash differs from other shells, …

  10. The Bash Guide

    A complete guide for newcomers and advanced users to correct usage and deepen understanding of the bash shell language.