Skip to content

Instantly share code, notes, and snippets.

@sergebat
Created October 9, 2020 15:03
Show Gist options
  • Save sergebat/ac0559eef7bdf35ec5a6a004219c0dba to your computer and use it in GitHub Desktop.
Save sergebat/ac0559eef7bdf35ec5a6a004219c0dba to your computer and use it in GitHub Desktop.
Shell script to extract body tag from index.html
#!/bin/sh
sed -n '/<body>/,/<\/body>/{//!p}' dist/index.html > dist/body.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment