I am new to command line scripting. I just want to copy text starting from a particular string and ending with another string. How can I achieive that using sed or grep or any other way.
eg:
-----CompilerOutput:-stderr----------
Assets/Editor/AutoBuild1.cs(12,16): error CS1001: Unexpected symbol `(', expecting identifier
Assets/Editor/AutoBuild1.cs(12,32): error CS1026: Unexpected symbol `,', expecting `)'
Assets/Editor/AutoBuild1.cs(12,78): error CS1026: Unexpected symbol `,', expecting `)'
Assets/Editor/AutoBuild1.cs(12,99): error CS1525: Unexpected symbol `,', expecting `;' or `}'
Assets/Editor/AutoBuild1.cs(12,125): error CS1525: Unexpected symbol `)', expecting `;' or `}'
-----EndCompilerOutput---------------
Here I want to copy text from -----CompilerOutput:-stderr----------
till -----EndCompilerOutput---------------
from the error log which is saved to log.txt
Thanks in advance.