A Cool Piece of Code
Can any of you figure out what this single line of code does?
for vari in `cat file1`; do curl $vari | grep "comments</a>"| cut -b 213- | awk '{s+=$1} END {print "Total: " s}' >> file2; doneHint - file1 looks like this:
http://becauseichooseto.blogspot.com/and file2 looks like this:
http://enterthenerd.blogspot.com/
http://randomness976.blogspot.com/
Total: 71Well, anybody? Come on Cody, you should be able to get this.
Total: 96
Total: 20

5 Comments:
it counts responses to diferent blogs of Scotar0007 and randomnesss976 and ewe
Yup. Anonymous, who are you?
Hello Liz. Thank you for being polite to me. I'm sorry... I didn't even notice the address there. Removing it would of course be the gentlemanly thing to do, but it would have been nice if Carmi had talked to me instead of calling the cops on me. But I don't want to debate that again. I have removed the email address. Sometimes you don't need to force people to do anything; you just need to ask nicely.
Oh, and can you ask Carmi how she liked the book "Watchers" for me?
Thanks.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home