bin/old/draft (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh draft() { mv "$1" drafts/ } undraft() { mv "$1" pages/blog/ } post="$1" if [ "$1" == "u" ]; then post="$2" undraft "$post" else draft "$post" fi