Election Day
I rolled out of bed a little after 6 this morning to scoot over to the polls. It was in a different spot this year for my precinct but I checked the sample ballot I was mailed and had the right place. Others….well they didn’t bother to check. Rather than being a bit annoyed that they hadn’t checked and realizing that after all just because ‘you always vote at yadda yadda school’ doesn’t mean you will be on the rolls for another precinct they wanted to scream and yet and blame everyone else. Really people? Really? No consideration at all for the poll workers nor for the poor souls that have to figure out all that stuff. Yeah, sometimes things get messed up and whops you have to go a few blocks over to vote, and yeah maybe someone should have come out a little earlier or put the map closer to the end of the line, but geez it was 6:30 in the morning and they were doing the best they could only having been open for a half hour so get over it. Ptttt
So an hour in line and then I scoot back home to get ready for work. I really thought I was going to be way late. I just barely caught the bus right after the one I normally take…yet I got to work at the same time. The connection bus must have been way early or way late, but hey I’ll take it.
Oh yes, and PowerShell sweetness of the day. Say you have a list of names and you want to look for things in that list within a larger file (or files). Easy peasy, and this probably isn’t even the easiest way to do it:
foreach ($line in gc c:\delmbox.txt) { gci * | select-string $line | fl pattern, path}
For each line in delmbox.txt it will get the contents of all the files in the current directory where it fines the line from delmbox.txt and format the results in a list showing the pattern (what you were looking for) and the path (which file it found it in). Right now I am working o having it show part of the line, but just the section I want. Too bad what I am looking is is not a csv file, that would make it way easier.