Skip to content

Instantly share code, notes, and snippets.

@roylez
Created July 11, 2019 03:01
Show Gist options
  • Save roylez/4d089d379eda2b1092dfd7555a342c3e to your computer and use it in GitHub Desktop.
Save roylez/4d089d379eda2b1092dfd7555a342c3e to your computer and use it in GitHub Desktop.
#!/bin/bash
#
for i in *; do
echo $i
cat $i |awk "/^$1/ { s=1 }; s == 1; s==1 && /^}/ { s=0 }"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment