Created
September 20, 2012 13:51
-
-
Save mookjp/3756049 to your computer and use it in GitHub Desktop.
Script generating mynt template with date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Generate mynt template file with filename. | |
# The argument should be the title of the article. | |
filename=`date +%Y-%m-%d`-$1.md | |
touch $filename | |
cat <<_EOT_ > $filename | |
--- | |
layout: post.html | |
title: | |
tags: [] | |
--- | |
_EOT_ | |
# generated text | |
echo Generated: $filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment