I just wrote a function in my ~/.bashrc that will let me create a folder for a new website with one command. The function looks like this:
function newsite() { mkcd "$*" # mkdir and cd into it mkdir "js" mkdir "imgs" touch "index.html" touch "main.css" vim "index.html" } Now what I would like to do is, instead of just touching index.html and main.css I'd like to create basic template files for index.html and main.css problem is I have absolutely no idea how to do that. I don't know much about writing to files using bash commands. Typically I'd just open the files in vim and go to town but I'd like to have something already started when I get into vim...
site_template/, and just do a recursive copy from the template folder to the new site folder, followed by whatevercdandvimcommands you want.sconsto do this.