Skip to content

Instantly share code, notes, and snippets.

@jeanlouisferey
Created October 11, 2019 12:14
Show Gist options
  • Save jeanlouisferey/8d2f74358368743fe24c8f67e2695ba5 to your computer and use it in GitHub Desktop.
Save jeanlouisferey/8d2f74358368743fe24c8f67e2695ba5 to your computer and use it in GitHub Desktop.
Change lynis report to Markdown
WIP:
yes | lynis audit system --no-colors | sed 's/\x1b\[[0-9;]*[a-zA-Z]//g' | sed 's/\[+\]/##/g' > /tmp/test-lynis8.md 2>&1
TODO:
- create a TOC
- add some emphasis
- make first level title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment