Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chmeee/8ccad351aaddf6c44c07 to your computer and use it in GitHub Desktop.
Save chmeee/8ccad351aaddf6c44c07 to your computer and use it in GitHub Desktop.
pdf2txt.py CIS_Microsoft_Windows_Server_2012_R2_Benchmark_v1.1.0.pdf | tr -d '\f' | sed -nr '/^[0-9]+\.[0-9]+/,/^$/p;/^Computer Configuration/,/^$/p;/^User Configuration/,/^$/p' | egrep -v '\.\.\.|CCE|^1\.0\.0|^1\.1.\0|P a g e' | cat -s | awk 'BEGIN { RS = ""; OFS = " "} {$1 = $1; print ; print '\n'}' > CIS_Microsoft_Windows_Server_2012_R2_Group_policies.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment