2 ms·
Depending on what you're looking for, grep may or may not. grep <pattern> <file> Convenient when you're looking for <pattern> in a bunch of <file> (and fo
by dredmorbius 11y ago
Depending on what you're looking for, grep may or may not.
grep <pattern> <file>
Convenient when you're looking for <pattern> in a bunch of <file> (and for some reason cannot glob or list them). Less so if you're looking for a bunch of <pattern> in some one <file>.
I've been known to write one-liner shell functions to put the variable component of a list of commands at the end of the commandline for easy editing.