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

<https://github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_awk.md>

- Host: [github.com](https://links.thingelstad.xyz/hosts/github.com/)
- Saved: October 26, 2017 (2017-10-26T12:03:42Z)
- Record: https://links.thingelstad.xyz/links/43b9e99f8fc5/
- JSON: https://links.thingelstad.xyz/links/43b9e99f8fc5.json

## What Jamie wrote

I recently had to go through a hundred or so markdown files with [YAML](http://yaml.org) front matter for [Jekyll](https://jekyllrb.com) and modify the [front matter](https://jekyllrb.com/docs/frontmatter/) 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](https://github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_sed.md)

## Facts

- Kind: [Repository](https://links.thingelstad.xyz/kinds/repository/)

## Appears in

- [WT25: Weekly Thing for October 28, 2017](https://weekly.thingelstad.com/archive/25/), Links 📌

## Same host

- [PyGraphistry is library to extract, transform, and visually explore big graphs](https://links.thingelstad.xyz/links/ee9dd6fef0ad/) (github.com, August 25, 2017)
- [profiling: An interactive continuous Python profiler.](https://links.thingelstad.xyz/links/6a4ca70aaaa1/) (github.com, October 28, 2017)
- [GitHub - Introducing Team discussions](https://links.thingelstad.xyz/links/5d27d55ea6cb/) (github.com, November 21, 2017)
- [gtop: System monitoring dashboard for terminal](https://links.thingelstad.xyz/links/4f7f7c370d7b/) (github.com, November 22, 2017)
- [pingfs: Stores your data in ICMP ping packets](https://links.thingelstad.xyz/links/534d1b6dd59d/) (github.com, November 23, 2017)

## Saved the same week

- [Reaching people on the internet - The Oatmeal](https://links.thingelstad.xyz/links/877ab1189c6a/) (theoatmeal.com, October 26, 2017)
- [Dramatiq: simple task processing](https://links.thingelstad.xyz/links/33e3563d45a5/) (dramatiq.io, October 26, 2017)
- [wallabag: a self hostable application for saving web pages](https://links.thingelstad.xyz/links/eb827a97c4e0/) (wallabag.org, October 26, 2017)
- [Move fast, break nothing - The Download](https://links.thingelstad.xyz/links/e931c77c39c3/) (blog.eero.com, October 26, 2017)
- [Page.REST - An HTTP API to extract OpenGraph, oEmbed or any other content from any public web page as JSON.](https://links.thingelstad.xyz/links/12feac6bed10/) (page.rest, October 26, 2017)

## Elsewhere

- Wayback Machine: https://web.archive.org/web/*/https://github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_awk.md
