Joe Dawley

The life and times of a geek

0 notes

Find all files then grep in them…

Hello unix users, do you ever find yourself needing to find all mentions of myWonderfulFunction() in all *.cpp files in a certain directory and below. find will let you run a grep on its results, I keep forgetting the details and then spending way too much time looking for it again. I’m posting it here so that I don’t need to look for it again and maybe others will find this useful.

find . -name *.cpp -exec grep -q “myWonderfulFunction(” {} \; -print

note the ) is missing in the above statement to accommodate for parameters

Filed under unix cpp find grep find -exec

0 notes

Buckeyes

not the ohio state kind. My wife just brought me one from the fridge, and for that I’ll write something nice about her on my blog. That way her and my mom and the two or three other friends know that I appreciate her letting me chill in my chair and still enjoy a nice chocolaty peanut butter treat that her aunt made. My wife is awesome for a myriad reasons, bringing me food is one of them.

0 notes

Did you know google books has magazines?

So I’ve been a fan of google books for a while.  I recently found out they’ve added magazines to the mix.  So you’re researching something and don’t have access to lexus nexis…. go to google books and see whats available. Obviously no new stuff but some reasonably recent stuff is available. This is not going to replace lexus nexis but it could be a handy tool in the future. For now its just kind of cool.

0 notes

Busy busy busy

I would like to redo my whole web site and do something really creative (not really my strong point) or really useful but I haven’t had a whole lot of time.  My new job is awesome but the drive really cuts down on time and theres a million other things to do so the web site is rarely more than a  passing thought.  Hopefully one day soon I’ll come up with something

see ya.