Shell Helper Create New Post

I created a little shell helper to create a new markdown file for a blogpost.

File: newPost.sh:

#!/bin/sh
touch _posts/`date +%Y-%m-%d`-$1.md

With this scipt i can do

thomas@thinky ~/dev/pages (git)-[master] % ./newPost.sh Shell-helper-create-new-post

EDIT: I extended the snippet a little bit:

#!/bin/sh
FILENAME="_posts/`date +%Y-%m-%d`-$1.md"
echo "---
layout: default
---" > $FILENAME && $EDITOR $FILENAME

Now the default layout is added to the file and the fileeditor $EDITOR is launched.