Graybeard
Well-Known Member
Watching portions of your video ... to get the word count
Took a little fudging around
text file was changed to DOS*
- wget or curl the HTML
- then at a LINUX terminal or ssh (server)
Code:
$ cat -n shaunm.html |grep 'body>'
2 <body>
11 </body>
$ sed '3,10!d' shaunm.html |sed -e 's/<[^>]*>//g'|wc -w
102
102 word sample with the <html> tags stripped out ;)
Code:
|egrep -v '^/\*|{|}|var|//|[|]|<' |egrep '^,"' |sed -e 's/\[[0-9]*\]//' -e 's/null//'| egrep -v ',null,'
#^ these are other options to strip some source code ... when necessary
text file was changed to DOS*
Attachments
Last edited: