I used to use linux a lot. I liked its grep command which has -A and -B option. -A <line_numbers> gives number of lines after the matching, -B <line_numbers> gives number of lines before the matching.
Right now, i am working on Solaris. Its grep does not have these features. I can write a program to achieve the goal. Actually i really don't want to reinvent the weel. Can some one shed some light on this with perl module or some other perl shortcut? Thanks,
PerlIsFunUpdated 2003-06-11 by mirod: changed title and added formating.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |