Skip to content

Instantly share code, notes, and snippets.

@sohamkamani
Created February 15, 2015 16:12
Show Gist options
  • Save sohamkamani/16742c852ddd4858232c to your computer and use it in GitHub Desktop.
Save sohamkamani/16742c852ddd4858232c to your computer and use it in GitHub Desktop.
Creates a new html web project , with the initial linked css and js files ready
echo "Enter the project name"
read -e NAME
mkdir $NAME
cd $NAME
mkdir css
touch css/index_style.css
mkdir js
touch js/index.js
touch index.html
echo "<!DOCTYPE html>" >> index.html
echo "<html>" >> index.html
echo "<head>" >> index.html
echo " <title></title>" >> index.html
echo ' <meta charset="utf-8">' >> index.html
echo ' <link rel="stylesheet" type="text/css" href="css/index_style.css">' >> index.html
echo ' <script type="text/javascript" src="js/index.js"></script>' >> index.html
echo "</head>" >> index.html
echo "<body>" >> 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