Skip to content

Instantly share code, notes, and snippets.

@userhooke
Created August 4, 2017 12:45
Show Gist options
  • Save userhooke/acdd83ac6ff06ca0fc8312e465f03ab0 to your computer and use it in GitHub Desktop.
Save userhooke/acdd83ac6ff06ca0fc8312e465f03ab0 to your computer and use it in GitHub Desktop.
Script to produce an index.html file
#!/bin/bash
# nindex.sh - A script to produce an index.html file
touch index.html
echo "<!DOCTYPE html>" >> ./index.html
echo "<html lang="en">" >> ./index.html
echo "<head>" >> ./index.html
echo " <meta charset="UTF-8">" >> ./index.html
echo " <title>HTML Template</title>" >> ./index.html
echo "</head>" >> ./index.html
echo "<body>" >> ./index.html
echo " " >> ./index.html
echo " <script>" >> ./index.html
echo "" >> ./index.html
echo " </script>" >> ./index.html
echo "" >> ./index.html
echo "</body>" >> ./index.html
echo "</html>" >> ./index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment