Skip to content

Instantly share code, notes, and snippets.

@lukmdo
Created April 7, 2010 11:23
Show Gist options
  • Save lukmdo/358765 to your computer and use it in GitHub Desktop.
Save lukmdo/358765 to your computer and use it in GitHub Desktop.
AWK code repo
BEGIN {begin=0;end=0}
{
if ($1 == "Open_features:") begin=1
if (begin && $1 == "") end=1
if (begin && !end && $1 != "#" && $1 != "Open_features:") OUT[$NF] = 1
}
END {for (key in OUT) print key}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment