4 ms·
Learning about -o has decreased my use of sed considerably. Where I used to use: sed -n 's/.*\(pattern\).*/\1/p' it can instead simply be: grep -o 'p
by pavon 5y ago
Learning about -o has decreased my use of sed considerably. Where I used to use:
sed -n 's/.*\(pattern\).*/\1/p'
it can instead simply be:
grep -o 'pattern'
The -w flag is new to me today - excited to save still more keystrokes!