Hello, YES! RTFM. Section "Pathname Expansion" (aka globbing): [..] [...] Matches any one of the enclosed characters. [..] There's also other places where [ has a special meaning, esp. as an alias for the 'test' builtin. On Sun, 08 Jul 2012, lynn wrote:
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]
RTFM: man 7 regex [ has a special meaning for grep _as well_! You'll need to use grep '\[7a\]' file with the '' to stop the shell expanding the [], and the '\' to escape them in the regex. You should find stuff like this in any decent shell-intro. -dnh -- "Humans need fantasy .. to *be* human" -- Death (in Hogfather) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org