github.com · Saved

Command-line-text-processing/gnu_awk.md at master · learnbyexample

github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_awk.md

What Jamie wrote

I recently had to go through a hundred or so markdown files with YAML front matter for Jekyll and modify the front matter with data from the filename. I did 3 or 4 by hand and realized how much that was going to be terrible. Then I wrote a for loop in a bash script with awk and sed and I was done in a couple minutes. This writeup of awk is very nice and the examples are rich. I'd recommend reading the similar one for sed