Search Results

Search: Posts Made By: murpholinox
2,855
Posted By murpholinox
great!! last (truly..) thing.. can that be...
great!! last (truly..) thing..
can that be generalised..for n files....n could be 2, 3, 5, 6, 7, or 10... just to know...


man.. I owe u a beer whenever u want:b:

I will learn awk!:D
2,855
Posted By murpholinox
only one last thing. there is a way to get the...
only one last thing. there is a way to get the lines that do not match (send them to another output file) with a modified version of that awk script or is better to do comm -12 file1 file2 ?
...
2,855
Posted By murpholinox
thank you so much! could u please, explain me...
thank you so much!
could u please, explain me this
'NR==FNR
2,855
Posted By murpholinox
ok lets assume file1 and file2 are the lines...
ok
lets assume file1 and file2 are the lines shown on the first post (only first 10 lines of each file)
I want >
1,101,0.9,0.366667
1,3,0.9,0.2
1,97,3.8,1.05
1,98,10.9,0.473464...
2,855
Posted By murpholinox
ok I have something like this.. the problem is...
ok I have something like this..
the problem is that I do not know how to tell if field one AND field two match $line...

awk -F "," '{print $1, $2}' file1 >a
awk -F "," '{print $1, $2}' file2 >b...
2,855
Posted By murpholinox
Add fields in different files only if some fields between them match
Hi everybody (first time posting here)

I have a file1 that looks like >

1,101,0.1,0.1
1,26,0.1,0.1
1,3,0.1,0.1
1,97,0.5,0.5
1,98,8.1,0.218919
1,99,6.2,0.248
2,101,0.1,0.1...
Showing results 1 to 6 of 6

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