I have a requirement where I have to scan a file, search for a string and print the next 10 lines of the file starting from the line where the string was found.
E.g. MyFile
This is line1
This is line2
Did you Findme
This is line3
This is line4
.
.
.
String to find "Findme"
Output should be
Did you Findme
This is line3
This is line4
.
.
.
Also, the output should be written to another file
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |