oops... input file is a little more complicated
===
10/29/2007
line 1 data
line 2 data
line n data
This is the rest of line 1
This is the rest of line 2
This is the rest of line n
new line 1 data
new line 2 data
new line n data
This is the rest of line 1 new data
This is the rest...
I think I have it but
Will this work for tens of thousands of records? (large input file)
plus I don't like that I have to use the string "line"...
NF > 0 {
records[NR] = $0
if ( NR == 1 ) gvmyday = $1
if ( $1 == "line" ) cnter+=1
}
END {
if (NR > 1) {
for ( i = 2; i <=...
Hi, please help
I need to re-layout a file so the records are on one line.
If I have 4 records then sample input:
10/29/2007
line 1 data
line 2 data
line 3 data
line 4 data
This line is rest of line 1
This line is rest of line 2
This line is rest of line 3
This line is rest of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.