4 ms·
Match any non-empty line. /usr/bin/grep ".*" /path/of/file
by olefoo 17y ago
Match any non-empty line.
/usr/bin/grep ".*" /path/of/file
- nash 17y agoSod any 'non-empty line' /usr/bin/grep '^' > output Or even better, grep can be an editor with line filtering - if you make an mistake, have it throw away the line: /usr/bin/grep -v '%' > output (Any line with a %, throw away, keep the rest - good for multi-line files)
- JoachimSchipper 17y agoThat command actually matches any line. You seem to have confused it with egrep ".+".