I think I've figured this out.
Posting cute photos of your child and/or pets = teh comments.
Well, I suppose posting photos of your boobies works as well. But trust me---you don't want to see those...
Geek Corner
This is my current script to create new SG posts; feel free to use it for whatever, or make comments about it:
--phraktyl
Posting cute photos of your child and/or pets = teh comments.
Well, I suppose posting photos of your boobies works as well. But trust me---you don't want to see those...
Geek Corner
This is my current script to create new SG posts; feel free to use it for whatever, or make comments about it:
#!/bin/bash
# Save our current directory
pushd `pwd` > /dev/null
cd ~/sg/posts
# Loop through entry numbers for the current day until we find
# one that doesn't exist
ENTRY=1
DATE=`date '+%y%m%d'`
while [ -f "sg-$DATE-$ENTRY.txt" ]; do
let "ENTRY=(($ENTRY + 1))"
done
# Save the filename
POSTFILE="sg-$DATE-$ENTRY.txt"
# Use the premade template post
cp template.txt "$POSTFILE"
# I suppose I should use $EDITOR here to make it more universal...
vi "$POSTFILE"
# If the postfile isn't changed from the template file, remove it
if diff -q template.txt "$POSTFILE" > /dev/null; then
rm "$POSTFILE"
fi
# Open it in TextEdit for spell-checking, and copy/paste purposes
# (This part is OS X specific)
[ -f "$POSTFILE" ] && open "$POSTFILE"
# Echo out the post file, including the path, so I can copy/paste
# it from the command line for further edits
[ -f "$POSTFILE" ] && echo "~/sg/posts/$POSTFILE"
# Return to the previous directory
popd > /dev/null
--phraktyl
VIEW 5 of 5 COMMENTS
Once I was angelina jolie!
I was blonde once but not platinum...
aaaaack your profile makes me yearn more for powerbook goodness :<