bash script to create new posts from templates