Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I'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!)



Yes, but I had forgotten about it, thank you!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: