extracting text in bourne shell

From: MIA (sfrazq_at_hotmail.com)
Date: 07/28/03


Date: 28 Jul 2003 13:46:21 -0700

Hi there,

I want to write a script that exract text from data file i.e

% cat data

########
data 1 1002
EC
########
data 2 2345
data 3 Error
EC
########
data 4 Error
data 5 254225
data 6 336586
data 7 578641
EC
########

now I want to extract the data b/w ##### i.e.

% extract data
data 1
EC
data 2
data3
EC
.
.
.
data 7

someone told me that I can use awk for this purpose but I don't know
how to prgramme in awk, so if suggesting me the solution in awk please
tell me also where can I get a good tutorial on (except for man
command bcoz it is very difficult to understand without examples).

Thank you all



Relevant Pages

  • Re: extracting text in bourne shell
    ... > I want to write a script that exract text from data file i.e ... > % cat data ... > % extract data ...
    (comp.unix.shell)
  • Re: extracting text in bourne shell
    ... > I want to write a script that exract text from data file i.e ... > % cat data ... > how to prgramme in awk, so if suggesting me the solution in awk please ... Lazlo's Chinese Relativity Axiom: ...
    (comp.unix.shell)
  • Re: extracting text in bourne shell
    ... >I want to write a script that exract text from data file i.e ... >how to prgramme in awk, so if suggesting me the solution in awk please ...
    (comp.unix.shell)
  • Re: extracting text in bourne shell
    ... > I want to write a script that exract text from data file i.e> ... > % extract data ... > someone told me that I can use awk for this purpose but I don't know> how to prgramme in awk, so if suggesting me the solution in awk please> tell me also where can I get a good tutorial on. ...
    (comp.unix.shell)
  • Re: extracting text in bourne shell
    ... > I want to write a script that exract text from data file i.e> ... > % extract data ... > someone told me that I can use awk for this purpose but I don't know> how to prgramme in awk, so if suggesting me the solution in awk please> tell me also where can I get a good tutorial on. ...
    (comp.unix.shell)