Weekend...
Apr. 6th, 2008 02:21 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I'd like to write that it was a crappy weekend. In some respects, it absolutely was. The date I had scheduled Saturday night, the one I've been trying to put together since, oh, mid-February, fell through due to illness. I discovered that my algorithm for doing word count was wrong and I wasn't at 42,600 words like I had thought, but only 40,900. A friend of mine put out the call Saturday night that his house had caught fire and he needed people to come over and help clean up the rest.
Still, Saturday night, after I had finished moping about my broken date and Omaha came home too exhausted from some long Democratic Party bureaucratic thingy, we went out to eat at Red Lobster, got home late, went more or less straight to bed.
Sunday we went up to our friend's and helped him move furniture, pull out bag after bag of smoke-contaminated clothing, and generally empty his house out enough that the professional cleaners could take care of the floors, ceilings, and walls.
Omaha had to run up to more politicking, and so after I dropped her off there I headed home with Kouryou-chan, who's playing on her computer right now. I'm feeling... dizzy. Exhausted. Worn out already. I'm not sure why. I should do another thousand words. It's on my list. But I think I'm gonna go lie down for a little bit.
Still, Saturday night, after I had finished moping about my broken date and Omaha came home too exhausted from some long Democratic Party bureaucratic thingy, we went out to eat at Red Lobster, got home late, went more or less straight to bed.
Sunday we went up to our friend's and helped him move furniture, pull out bag after bag of smoke-contaminated clothing, and generally empty his house out enough that the professional cleaners could take care of the floors, ceilings, and walls.
Omaha had to run up to more politicking, and so after I dropped her off there I headed home with Kouryou-chan, who's playing on her computer right now. I'm feeling... dizzy. Exhausted. Worn out already. I'm not sure why. I should do another thousand words. It's on my list. But I think I'm gonna go lie down for a little bit.
algorithm for word count?
Date: 2008-04-07 12:52 am (UTC)Re: algorithm for word count?
Date: 2008-04-07 01:14 am (UTC)My command for word count was:
grep -v '^ *;' *.txt | wc
Which has the bug. The problem is that grep, when presented with more than one file, unless told to do otherwise will print the name of the file on every line it encounters that matches the criteria. This means that every line that is not a comment gets at least one extra "word" counted: the filename. I have over two thousand lines, and that added up. The correct command is:
grep -hv '^ *;' *.txt | wc
no subject
Date: 2008-04-09 03:31 am (UTC)Sorry the weekend sucked. Must get fun back on track.