Search Results

Search: Posts Made By: RudiC
2,796
Posted By RudiC
Try awk ' function PRT() {if (!HDDONE) ...
Try
awk '
function PRT() {if (!HDDONE) {printf "TimeStamp"
for (i=1; i<=MXSV; i++)
for (j=2; j<=MXHD; j++) printf...
2,796
Posted By RudiC
How about applying what you learned so far trying...
How about applying what you learned so far trying to bring up a solution of your own. People in here will be glad to help when you get stuck.
2,796
Posted By RudiC
Try awk ' function PRT() {for (i=1; i<=MXSV;...
Try
awk '
function PRT() {for (i=1; i<=MXSV; i++)
for (j=2; j<=MXHD; j++) printf " %s-%s", SV[i], HD[j]
printf RS
for (i=1; i<=MXSV; i++)
...
2,796
Posted By RudiC
Yes. By what logics can each new data set be...
Yes. By what logics can each new data set be identified? And, a sample input always helps.
2,796
Posted By RudiC
Try awk ' NR == 1 {printf "%s ", $0 ...
Try
awk '
NR == 1 {printf "%s ", $0
next
}
!NF {getline
for (i=2; i<=NF; i++) HD[i] = $i
MXHD = NF
...
2,796
Posted By RudiC
No surprise. The structure of the file above...
No surprise. The structure of the file above doesn't meet the one in post#1.
2,796
Posted By RudiC
"seems to work" is not quite the expected...
"seems to work" is not quite the expected result...

awk '
NR == 1 {printf "%s ", $0 # print time stamp
next ...
2,796
Posted By RudiC
Try awk ' NR == 1 {printf "%s ", $0 ...
Try
awk '
NR == 1 {printf "%s ", $0
next
}
NR == 2 {for (i=2; i<=NF; i++) HD[i] = $i
MXHD = NF
next
...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy