Why bracket a single letter in a grep regex?
Solution 1:
There's no reason that's preferable syntax on its own. It's sometimes used as a hack when "grepping" for a process (e.g., ps aux | grep [a]pache
). Using that syntax prevents grep from matching its own command line in the process list.
See How to prevent "ps" reporting its own process?