Skip to content

Instantly share code, notes, and snippets.

@dustincys
Last active January 3, 2016 08:19
Show Gist options
  • Save dustincys/8435370 to your computer and use it in GitHub Desktop.
Save dustincys/8435370 to your computer and use it in GitHub Desktop.
shell script of creat new jekyll blog file, automatically change the tags to lowercase
#!/bin/bash
vim `date +%Y-%m-%d-$@.md`;
sed -i -e 's/\(tags\s*:\)\(.*\)/\1\L\2/g' `date +%Y-%m-%d-$@.md`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment