Extract block of text
- From: joao.manuel.rei@xxxxxxxxx
- Date: Thu, 24 Jan 2008 10:24:40 -0800 (PST)
Hi
I would like to extract the first block of data in a file. Input
example with 2 blocks:
This is the begining
-------
some text1
some text2
This is the beggining
-------
some text1
some text2
In this example the line count of each "input block" is 4. But the
size can be different. It's dynamic. The blocks are similar.
Is It better to do it with shell, sed or awk?
Thanks
João Rei
.
- Follow-Ups:
- Re: Extract block of text
- From: Ed Morton
- Re: Extract block of text
- From: Janis Papanagnou
- Re: Extract block of text
- Prev by Date: Re: How do I get a list of filenames with spaces on bash?
- Next by Date: emacs alias
- Previous by thread: Strange awk substr bug
- Next by thread: Re: Extract block of text
- Index(es):
Relevant Pages
|