Search Results

Search: Posts Made By: delbroooks
2,629
Posted By delbroooks
This is matching the two files well. I am getting...
This is matching the two files well. I am getting a warning that says
assignment used in conditional context

awk: awkscript5:30: (FILENAME=file2.txt FNR=175) warning: assignment used in...
2,629
Posted By delbroooks
There is a bug in the code. I tried your...
There is a bug in the code. I tried your suggestion, What I see is happening is file1 (containing farads) is matching with file1 itself. file 2 (containing reactance) is matching with file 2 itself...
2,629
Posted By delbroooks
What command did you use at the command line to...
What command did you use at the command line to run the code?
gawk --lint -f awkscript4 < file1.txt file2.txt | less

prints the following:


2018-02-16 16:46:09.300 reactance 0.0004300000...
2,629
Posted By delbroooks
Thanks your code worked. I have a follow up...
Thanks your code worked. I have a follow up question on your code

Suppose I have the data that needs to be matched in file1
and the data from which match will happen in file2

how will the...
2,629
Posted By delbroooks
@RudiC I have rephrased the question above....
@RudiC I have rephrased the question above. Please see the logic of the match. Basically there is 2 minutes time window on either side to find a match, if none found it prints NAs

To your question...
2,629
Posted By delbroooks
your proposed changes if (!lmin++) lmin=0 and...
your proposed changes if (!lmin++) lmin=0 and min=difference + 1
as well as Replacing min=(0+"inf") WITH min="inf"
is printing only "NA NA" in the last two columns it's not matching anything...
3,361
Posted By delbroooks
You may invoke the multiple delimiters by using...
You may invoke the multiple delimiters by using awk -F['/*%...] and so in. Basically use square brackets.
2,629
Posted By delbroooks
awk matching script not working as expected
This is my ubuntu version:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

$ /bin/awk -V |...
Showing results 1 to 8 of 8

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