My New Post Bash Shell Script

May 17, 2020

jigsaw bash

I like to make shell scripts to make my life easier. this is my current newPost script. It isnt very comlicated, but gives me a simple blank post, quickly.

I would like it to format the $something in camel case with the dashs removed by spaces.

Also, I could add a line to open it in sublime


echo -n "New File Name:"
read something

echo "You Entered: $something"

FILE="source/_posts/$(date +%F)-$"

touch $FILE

cat > $FILE << EOF
section: content
title: $something
date: $(date +%F)
categories: []

If you would like to contact me you can either use this form on or via Twitter @andylondon