grep -iv "</body>" downloads/html/site/page1.html | grep -iv "</html>" | grep -iv "</HTML>" | grep -iv "</BODY>" > downloads/html/site/all.html
grep -iv "</body>" downloads/html/site/page2.html | grep -iv "</html>" | grep -iv "</HTML>" | grep -iv "</BODY>" >> downloads/html/site/all.html
grep -iv "</body>" downloads/html/site/page3.html | grep -iv "</html>" | grep -iv "</HTML>" | grep -iv "</BODY>" >> downloads/html/site/all.html
#..repeat as long as neccessary..
echo "</body></html>" >> downloads/html/site/all.html
Last active
February 17, 2024 01:49
-
-
Save carlosleonam/6dc72aa26b86224871bfbe267ec11560 to your computer and use it in GitHub Desktop.
Merge HTML files into ONE only.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi