Hi guys
can you help me ?
I have file format like this :
new york
kanada
china
USA
denmark
nairobi
kenya
bali
black
green
dark
blue
I want to find the word kenya then I want to get the result :
china
USA
denmark
nairobi
kenya
bali
black
green
dark
blue
So every time I found, special word that I am looking for then it will print group lines before and after the group lines that contain that word.
I am using UNIX awk for this case
thanks alot
paijo
can you help me ?
I have file format like this :
new york
kanada
china
USA
denmark
nairobi
kenya
bali
black
green
dark
blue
I want to find the word kenya then I want to get the result :
china
USA
denmark
nairobi
kenya
bali
black
green
dark
blue
So every time I found, special word that I am looking for then it will print group lines before and after the group lines that contain that word.
I am using UNIX awk for this case
thanks alot
paijo