3 ms·
That pattern doesn't need extended regular expressions (use grep -E instead of egrep though). Also `grep -v ^#` does the same thing. `sed /^#/d` is one char sho
by thesmallestcat 9y ago
That pattern doesn't need extended regular expressions (use grep -E instead of egrep though). Also `grep -v ^#` does the same thing. `sed /^#/d` is one char shorter.
- vacri 9y ago> Also `grep -v ^#` does the same thing. Depends on what you're after. 'grep ^[^#]' also gets rid of empty lines, as they don't have a first character to match.