jrap
02-19-2005, 10:02 PM
Hi folks. I'm pretty new to bash scripting, and could really use your help with the following:
I have a file that I need to parse, and I need to get the contents in between "\nMessage:\n" and the next "\nMessage:\n".
There will be multiple messages I need to get. How would I go about doing this?
So the file could look like this:
Message:
a
b
c
d
Message:
1
2
3
4
Message:
l
i
n
u
x
Thanks!
I have a file that I need to parse, and I need to get the contents in between "\nMessage:\n" and the next "\nMessage:\n".
There will be multiple messages I need to get. How would I go about doing this?
So the file could look like this:
Message:
a
b
c
d
Message:
1
2
3
4
Message:
l
i
n
u
x
Thanks!