View Single Post
Old 12-20-2015, 01:15 PM  
Robbie
Leaner, Meaner, Faster
 
Robbie's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: Vegas
Posts: 20,960
Quote:
Originally Posted by Barry-xlovecam View Post
Code:
#!/bin/bash

result=<filename>.txt
dos2unix $result&&
sed -i 's/.*/\L&/g' $result&&
sed -i 's/ /\n/g'  $result&&
sed -i  's/-/\n/g' $result &&
grep -iv '\!\|\.\|#\|@\|\\$\|%\|\&\|*\|(\|)\|-\|_\|=\|+\|\\\|\/\|\?\|.com*\|\.\.\.\|,\|>\|<\|\"\|:\|;\|]\|\[\|[0-999999]' $result >1g-$result&&
grep -iwv "a\|all\|and\|of\|at\|from\|in\|on\|results\|result\|for\|\|\|~\|the\|to\|is\|by\|as\|or\|it\|an\|are\|be\|but\|can\|if\|jan\|that\|feb\|mar\|apr\|may\|jun\|jul\|aug\|sep\|oct\|nov\|dec" 1g-$result > g-$result
sort g-$result > sorted-$result
'I'm sure the word "the" and "and" were used more than any others."

They were removed -- you are very wrong.
So people didn't say the word "the" more times than other words in the context of a sentence?
If so, then I would assume that there wasn't much in the way of complete sentences that made any sense. lol

And my point is 100% correct.

Compiling how many times a word was said is interesting. But doesn't mean much without the context of how it was said.

A person is MUCH better off watching the debates and listening to the speeches given by the candidates VS being told what they are supposed to think and what the candidates "really" meant.

Much better straight from the horses mouth than through the filter of a third party.

For instance...I could say the word "war" 100 times in a speech. And you might see stats saying that "Robbie used the word 'war' 100 times". And that might lead you to believe that I was pro-war (especially if you are a low-information voter who doesn't actually hear the speech for yourself, but instead rely on the "analysts" to tell you what I said)

But in reality I could have said "I hate war and will never go to war" and mentioned that thought over the course of the speech several times.

Yes, words do have meaning (thanks Capt. Obvious), but context is the basis of intelligent communication.
__________________
-Robbie
ClaudiaMarie.Com
Robbie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote