#!/bin/bash
### Geeky Blogs for The Inquisitive Sheep ###
# Close Gedit so that you won't post an empty blog
# Get name of blog post [TITLE]
# Get labels for blog post
# Gedit a text file in $HOME/Documents/Blog/[TITLE]
# Upload a labeled blog via googlecl with "google blogger post $HOME/Documents/Blog/[TITLE]"
xcowsay "Warning! killall gedit"
killall gedit
clear
echo ""
echo "What is the name of this blog?"
echo ""
read TITLE
echo ""
echo "$TITLE"
echo ""
echo "Any labels besides geeky? (e.g. 'label1, label2,' )"
echo ""
read LABELS
echo "$LABELS"
gedit $HOME/Documents/Blog/"$TITLE"
gnome-terminal -x xcowsay --monitor=0 """Your blog post $TITLE
is being posted via googlecl,
and its labels are
geeky, $LABELS"""
google blogger post --tags "geeky,"$LABELS"" $HOME/Documents/Blog/"$TITLE"
No comments:
Post a Comment