P
perltcl
hi
how to extract multi-line text from a text file looking like this:
#!/bin/bash
....
BEGIN_TOKEN
multi-line text 1
.......
.......
END_TOKEN
BEGIN_TOKEN
multi-line text 2
.......
.......
END_TOKEN
BEGIN_TOKEN
multi-line text 3
.......
.......
END_TOKEN
I need to extract all text between "BEGIN_TOKEN" and "END_TOKEN", and
pipe it to standard output.
thanks.
how to extract multi-line text from a text file looking like this:
#!/bin/bash
....
BEGIN_TOKEN
multi-line text 1
.......
.......
END_TOKEN
BEGIN_TOKEN
multi-line text 2
.......
.......
END_TOKEN
BEGIN_TOKEN
multi-line text 3
.......
.......
END_TOKEN
I need to extract all text between "BEGIN_TOKEN" and "END_TOKEN", and
pipe it to standard output.
thanks.