Congratulations. You have just re-invented the wheel. Unfortunately you have not re-invented the axle -- the part which pops up your favourite text editor with the cursor positioned at the start of the sought text. Anyway, who needs wheels when you've got a gyrocopters: text editors which do a "find next occurrence of pattern" across multiple files -- such things are available to hopeless *x people, aren't they?
BTW, hopeless Windows people have access to grep via GnuWin32.
Comment
Wow! grep doesn't stop to impress. However my output is much nicer :)
Parent comment
hi peter grep -r -s -A 5 -B 5
Replies
Congratulations. You have just re-invented the wheel. Unfortunately you have not re-invented the axle -- the part which pops up your favourite text editor with the cursor positioned at the start of the sought text. Anyway, who needs wheels when you've got a gyrocopters: text editors which do a "find next occurrence of pattern" across multiple files -- such things are available to hopeless *x people, aren't they?
BTW, hopeless Windows people have access to grep via GnuWin32.