4 ms·
Couldn't help myself ;) awk '/[Pp]attern1/ && !/pattern2/ {print $4}' file | \ something --specific What I wouldn't give to just spend every day awk golfi
by gryfft 5y ago
Couldn't help myself ;)
awk '/[Pp]attern1/ && !/pattern2/ {print $4}' file | \
something --specific
What I wouldn't give to just spend every day awk golfing.
- bloopernova 5y agoI'm always up for some command line sharing and golfing! I love the ways different approaches can enlighten me to amazing new ways of messing around with text. (and I say "messing around" but I mean it in the most serious way, I adore how much someone can change a stream of text with the command line and a few pipes!)
- kQq9oHeAz6wLLS 5y agoYou've seen https://www.commandlinefu.com https://www.commandlinefu.com , yes?
- bloopernova 5y agoYes, but I had forgotten about it, thank you!