I'd do it like this:
$ grep -E '^[^#]*foo' boom now is the foo for all $ cat boom now is the foo for all now # foo is the blarg
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Grep'ping on Unix without perl-compatible gnu grep - can you do it better?
by roboticus
in thread Grep'ping on Unix without perl-compatible gnu grep - can you do it better?
by Tommy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |