Hello,

I have a requirement as follows:

I want to print a line which contain a string with 4 lines above 6 lines below 
to an output file. Here is the example:

input file:

abc
jack
and
lko
irl
dock
jans
sifl
jkol
gtpo
lods
lpoi
lksd

String I am using is: dock

Then output file should be:

jack
and
lko
irl
dock
jans
sifl
jkol
gtpo
lods
lpoi

How is it possible?

Any help would be highly appreciated

Ansu




_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to