Home About Archives Search Feed


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

🔒 github.com

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

Posted on October 26, 2017








← Next post    ·    Previous post →