Shell – How to get surrounding lines of grep result?

Problem:I'm using grep to search for an error and want to display the surrounding lines also as they contain related information. How to do that? Solution:Using grep -C <# of lines to show above and below> <search> <file> The following prints the matched line, along with the 5 lines surrounding it. $ grep -C 5 […]

Why the YouTube logo changed to Green?

I was just creeping through YouTube, just to find something interesting to watch,what got my attention was the changed YouTube logo.Just a little Google search revealed that this green logo is to celebrate the Saint Patrick’s Day. Saint Patrick’s Day is celebrated worldwide by the those of Irish descent and increasingly by non-Irish people (usually […]