This code:
wget --output-document=- http://runescape.com/title.ws 2>/dev/null \
| grep PlayerCount \
| head -1l \
| sed 's/^[^>]*>//' \
| sed "s/currently.*$/$(date '+%r %b %d %Y')/" \
| cut -d">" -f 3,4 \
| sed 's/<\/span>//'
outputs something similar to:
112,915 people 10:44:54 PM Mar 18 2012
Can anyone help me make it so it will print out to look like:
3/18/2012 22:44:54 112,915 people
Thanks!
You’ll have to make your command this: