
extracting text in bourne shell
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