Monday, March 16, 2009

Parshing data using grep -A NUM

Let say you have this data below lots of diffrent date and information about the memory.






and you just want to extract the physical info that is dated Mar 16 use grep -A NUM

# grep -A 2 'Mar 16' filename





You now have all the Mar 16 physical data.

No comments: