Need help again altering output of script
Posted
by
Aaron
on Stack Overflow
See other posts from Stack Overflow
or by Aaron
Published on 2012-03-19T22:50:06Z
Indexed on
2012/03/19
23:29 UTC
Read the original article
Hit count: 388
wget --output-document=- http://runescape.com/title.ws 2>/dev/null \
| grep PlayerCount \
| head -1l \
| sed 's/^[^>]*>//' \
| sed "s/currently.*$/$(date '+%m\/%d\/%Y %H:%m:%S')/" \
| cut -d">" -f 3,4 \
| sed 's/<\/span>//' \
| awk '{print $3, $4, $1, $2}'
Will output:
03/19/2012 18:03:58 123,822 people
Would anyone be able to help me rewrite this so the output looks like:
03/19/2012 18:03:58,123822,people
I need it this way because when I import it into googledocs, everything with a comma gets separated. Thanks if you help!
© Stack Overflow or respective owner