4 ms·
A variation you can run into with GNU grep: grep -r [something] . >foo I've done this by accident once or twice :-)
by ScottBurson 9y ago
A variation you can run into with GNU grep:
grep -r [something] . >foo
I've done this by accident once or twice :-)
- AnimalMuppet 9y agoThe way I've done it: grep -r [something] * > foo What I now do instead: grep -r [something] * > .foo mv .foo foo Why it works: At least on bash, "*" does not match hidden files (files that begin with "." such as ".foo").