News for hackers. Stuff that matters.
Re:Learn random facts while pulling code changes by JReptak on Friday August 03, 2012 @04:47PM (#4336095)
Or better yet add color:

WARNING: REPLACE ASTERISK with the ATERISK character, keeps italicizing

alias facts="echo -ne '\033[36m'; curl -s randomfunfacts.com | grep '<i>' | sed 's/.ASTERISK<i>\(.ASTERISK\)<\/i>.*/\1/'; echo -ne '\033[0m'; tput sgr0"

And run it in BG so we don't have to wait for call to website before we pull

alias gpl="( facts ); git pull"

Re:Learn random facts while pulling code changes by paulbaumgart on Friday August 03, 2012 @06:02PM (#4336418)

  Prepending two spaces to a line will prevent ***automatic formatting***.
Re:Learn random facts while pulling code changes by cpeterso on Friday August 03, 2012 @06:33PM (#4336541)

  curl -s randomfunfacts.com | grep '<i>' | sed 's/.*<i>\(.*\)<\/i>.*/\1/'
Re:Learn random facts while pulling code changes by devgutt on Friday August 03, 2012 @06:49PM (#4336609)
you don need to use grep, only sed -n