read each line of the file and print out the line which occurs only after
specific pattern
jhonson travells to london at 12.45.36
jhonson went to london at 12.45.36
jhonson went to london at 12.45.36
jhonson went to london at 12.45.36
jhonson went to london at 12.45.36
jhonson went to london at 12.45.36
jhonson goes to london at 12.45.37
jhonson reaches to london at 12.45.40
jhonson reaches to london at 12.45.40
jhonson reaches to london at 12.46.37
jhonson reaches to london at 12.46.37
jhonson travelled to london at 12.45.36
jhonson reaches to london at 12.45.40
jhonson reaches to london at 12.45.40
jhonson reaches to london at 12.46.37
jhonson reaches to london at 12.46.37
jhonson going to london at 12.45.36
jhonson going to london at 12.45.36
jhonson going to london at 12.45.36
jhonson going to london at 12.45.36
jhonson going to london at 12.45.36
jhonson goes to london at 12.49.37
jhonson reaches to london at 12.41.40
jhonson reaches to london at 12.45.40
jhonson reaches to london at 12.47.37
jhonson reaches to london at 12.43.37
I want to read the file and print the lines that starts with "jhonson
goes" and stop printing the line befor "jhonson travelled". Is there a
simple way of doing it. please help
No comments:
Post a Comment