September 23, 2008

HOWTO : Use find and grep together

If you ever wanted to search for a particular text in certain types of files in Linux, you can use the following combo of find and grep

find / -name \*.xml -type f | xargs grep -i “text_to_search”

I used *.xml (note the \ before *) as the mask in the filename to look for all XML files.. then I piped this to grep using xargs.

A colleague pointed out that I can do the same by using

grep -r o-i “text_to_speech”

A couple thousand more reasons to run the marathon

I was watching a recent episore of “Real Sports with Bryant Gumbel” (sports show on HBO), which had a story about the plight of “debt” children from India. These children (in the cities of Meerut and Jalandhar) are forced into child labor due a debt their family got into. The terms of the debt so bad that the family never gets to pay it off. The children are then forced to work for nickels to stitch footballs. While the poverty of the family plays a role in this situation, an educated parent wouldn’t have allowed this to happen. If these folks had access to programs run by organizations like ASHA, they would have probably have gotten better paying jobs and their children wouldn’t have to be in this situation.

Running a marathon is a hard task, but nothing compared to the plight these children go through. I am proud to be helping eradicate such things from happening in the future. Help me raise money for ASHA, by clicking on this link (http://ashanet.org/chicago/teamashawiki/index.php/Runners/VinayKudithipudi) and donating whatever amount you feel is appropriate.

I have found my inspiration.. have you?

Week 14 & 15 training update

The last two weeks had been a bit crazy at work due to the recent hurricane hoopla we exeprienced here in the US. I was barely able to keep up with the mid week and weekend long runs. And I oficially missed the 4th race I registered for this year. I planned to run the Banco Half Marathon, last weekend, but wasn’t able to due to a hectic work schedule. I am so proud of the folks that ran it though. It was pouring all morning and I can only imagine how difficult it would have been to run in soggy shoes and clothes.

The 20 miler this weekend was tough. I started off strong and ran ~13 miles without any issues. Then the heat and humidity started to kick in and I had to literally walk the last 3 miles.