A command line script for grabbing ESPN's latest headlines!
Throw this baby into your $HOME/bin
directory (assuming it exists and is in your $PATH
) and chmod
it to 755
and you'll be cruising!
Dependencies:
Optionally: add ESPN headlines to your motd by:
Adding the following to your crontab:
0 * * * * $HOME/bin/espn-headlines.sh > $HOME/.ESPN
Adding the following to your ~/.bashrc
:
if [ -f $HOME/.ESPN ]; then
echo "The latest ESPN headlines:"
cat $HOME/.ESPN
echo ""
fi
Based on Eric Chiang's answer to my question:
http://stackoverflow.com/questions/26635752/pup-help-limiting-results