I want to capture contents of a file between 2 strings into another file
for eg all lines in between the keywords "start log" and "end log" should be copied into another file
I want to capture contents of a file between 2 strings into another file
for eg all lines in between the keywords "start log" and "end log" should be copied into another file
See the man page for awk.
cat yourfile |awk /"start log"/,/"end log"/ > newfile (note that this will put the start log and end log in the file also)