Skip to content

Instantly share code, notes, and snippets.

@wavded
Created August 24, 2012 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavded/3453287 to your computer and use it in GitHub Desktop.
Save wavded/3453287 to your computer and use it in GitHub Desktop.
awk 'match($0, "layouts:") == 1 { print $0 }' test.yaml | wc -l
sed '/layouts:/ i\ - !dnsMatch\n host: HI THERE\n' test.yaml | head -n 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment