Hi,
I have many files to be read and then put the results in ONE Output file... The output file should have this line as first line:
Erg1 Erg2 Erg3 Erg4 Erg5
The results will be arranged below this line like this:
Erg1 Erg2 Erg3 Erg4 Erg5
12 15 20 17 11
22 55 32 11 12
10 25 85 45 23
If my script has:
BEGIN {print "Erg1 Erg2 Erg3 Erg4 Erg5"}
it will print the line (Erg1 Erg2 Erg3 Erg4 Erg5) each time I read an input file... and I'll get an output like this:
Erg1 Erg2 Erg3 Erg4 Erg5
12 15 20 17 11
Erg1 Erg2 Erg3 Erg4 Erg5
22 55 32 11 12
Erg1 Erg2 Erg3 Erg4 Erg5
10 25 85 45 23
How can I prevent the printing of the first line if it exists before in the output file??
I wish it's clear
I have many files to be read and then put the results in ONE Output file... The output file should have this line as first line:
Erg1 Erg2 Erg3 Erg4 Erg5
The results will be arranged below this line like this:
Erg1 Erg2 Erg3 Erg4 Erg5
12 15 20 17 11
22 55 32 11 12
10 25 85 45 23
If my script has:
BEGIN {print "Erg1 Erg2 Erg3 Erg4 Erg5"}
it will print the line (Erg1 Erg2 Erg3 Erg4 Erg5) each time I read an input file... and I'll get an output like this:
Erg1 Erg2 Erg3 Erg4 Erg5
12 15 20 17 11
Erg1 Erg2 Erg3 Erg4 Erg5
22 55 32 11 12
Erg1 Erg2 Erg3 Erg4 Erg5
10 25 85 45 23
How can I prevent the printing of the first line if it exists before in the output file??
I wish it's clear