Search Results

Search: Posts Made By: tgooper
5,367
Posted By tgooper
hi, I want to include a check if the column5...
hi,

I want to include a check if the column5 in file2 is bigger than column5 in file1
My Code
awk 'NR<=FNR{_f1[$1 $5]=1;next} f1[$1 $5] > f1[$1 $5]' test_z.txt test_t.txt

It's not working :(...
5,367
Posted By tgooper
I've got one more question: How can I covert...
I've got one more question:
How can I covert this awk code into a skrip which I can start like
gawk -f skript.awk file2 file1 outputfile
5,367
Posted By tgooper
Sorry had the wrong file for my test!
Sorry had the wrong file for my test!
5,367
Posted By tgooper
Thanks for the explanation of the code. :) The...
Thanks for the explanation of the code. :)
The output of the programm should be those lines where column5 is different. With your code I get file1 as output. :confused:
5,367
Posted By tgooper
Thanks for the fast answer. I didn't expect that...
Thanks for the fast answer. I didn't expect that you can write this programm in one codeline. Can somebody explain me this codeline awk 'NR<=FNR{_f1[$1 $5]=1;next}!_f1[$1 $5]' file2 file1Thanx...
5,367
Posted By tgooper
awk read input files
hi,

i'm a beginner in writing awk scripts and I have a problem with reading input files.
Requirement for my programm:
compare file1 to file2 and check if value in column1 is equal and value in...
Showing results 1 to 6 of 6

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