[opensuse] bash: Is [ a special character?

grep [7a] somefile
finds all lines containing an a or a 7. Quoting: "[7a]" gives the same. a's and 7's.

I want to find [7a]

L x
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

Relevant Pages

  • Re: Copy stdout/stderr to a file
    ... then see if the word Error is there. ... program> somefile 2>&1 ... grep for the word ERROR. ...
  • Re: [SLE] grep question ...
    ... On Wednesday 27 April 2005 16:46, James Hatridge wrote: ... Quoting from 'man grep', in which I searched for "count": ... Please read the FAQs: suse-linux-e-faq@suse.com ...
  • Re: subprocess.Popen and replacing the shell pipe line
    ... Probably the quoting of the argument to grep. ... Jeff ... Prev by Date: ...
  • Re: Trouble with grep
    ... It matches both somefile_ 1.mp3 AND somefile_ .mp3. ... Why is this and can you suggest a better pattern? ... your example finds everything and runs grep on it????? ...