As soon as i posted it i worked out the problem (why I didn't see it before who knows).
For those interested here is the code that seems to be working. had to put in an extra equal sign in FNR = NR, and removed the first printing section.
$ awk 'BEGIN{FS=OFS=","}
FNR == NR...
hello,
I have several hundred files with similar file names (bldgX1_1.csv, bldgX1_2.csv, bldgX2_1.csv etc). Each file has an array of data
For example
bldgX1_1.csv
1, 2, 3
2, 3, 4
3, 4, 5
and bldgX1_2.csv
1, 1, 1
1, 1, 1
1, 1, 1
I am wanting to take both of these files and generate one file...
Hello All,
I have had a thorough search around for a solution to problem but am yet to find one. I have found part solutions and getting close but can't seem to close the deal.
My raw data looks something like, where ValueX is a comma seperated values.
1,ValueX
6,ValueY
8,ValueZ
etc
I need...
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.