10,248 questions
0
votes
0
answers
73
views
Comparing a portion of a Windows text file using windows FC command
I have 2 text files in a directory that I want to compare.
File_A:
Data 12345 Time 1:00 PM Date May 1 2026
File_n:
Data 12345 Time 3:15 PM Date May 3 2026
I can simply use FC C:\File....
Advice
0
votes
1
replies
55
views
fc /b giving different results when using in a loop
I have a batch script compare.bat where I compare a 2 files using fc.
In my Example AA is different and BB and CC are identical.
When I use fc as in the top example Ex1 it preoduces " Files are ...
0
votes
2
answers
329
views
How to compare two structs in Go but ignore undefined fields
I want to compare 2 structs in golang and consider them equal if all fields with a value are equal while ignoring fields which are undefined in either struct.
Take the following example:
type MyType ...
1
vote
1
answer
133
views
odin(idioma): the preferred way to compare slices
If i would compare by references i can deal with raw_data from
What is the preferred method of comparing values?
I think it's too generic to not exist in std...
// Maybe I can make `return false` on `...
2
votes
1
answer
115
views
How to compare the changes in two branches?
Say I have four commits A, B, C and D, with A being an ancestor of B and C being an ancestor of D. I now want to verify that the changes from A to B are the same as the changes from C to D (or show ...
3
votes
1
answer
171
views
Testing Whether Two Date Column Values are Within One Year of Each Other
I have two date columns in R and I want to create a new column called Dates_Aligned that will return TRUE if the two dates are within one year of each other and FALSE if more than a year separates the ...
0
votes
1
answer
183
views
Snowflake - Hash_agg comparaison issue
I have an issue when I use the function hash_agg on snowflake.
The result is different even if the data are the same in the table.
Below a data exemple
Sales id, name, price
1, Test1, 2
1, Test1, 3
1, ...
3
votes
1
answer
260
views
Compare structs in Odin
I have the following code in Odin:
Foo :: struct {
x: int,
y: int,
}
a := Foo{1, 1}
b := Foo{1, 1}
#assert(a == b)
According to official documentation I would expect to be able to compare ...
2
votes
1
answer
210
views
How to compare a reference combination to multiple cells and return the closest match header in Excel? [duplicate]
I'm working on an Excel sheet where I have:
A reference combination in cell S4, like 4,D,D,D,D,D,D,D
A range of combinations in W3:AH6, where each cell contains a comma-separated string like 3,A,A,A,...
4
votes
1
answer
105
views
bash string has odd expansion in if statement
I am doing a simple substring check using vars in .bashrc. This check should prevent adding a new path entry to $PATH that already exists in $PATH. The lhs is fine but the rhs of the compare expands ...
0
votes
0
answers
77
views
ClassCastException is not coming in JDK21 in Eclipse
ClassCastException is not coming in JDK21 in Eclipse
I check whether I get a ClassCastException in the console by using the TreeSet<StringBuffer>. However, the values are sorted and the output ...
0
votes
3
answers
108
views
Compare date in one file to dates in another file to find the closest match and apply the label
I have two files:
> print (CVA_data)
Ticket timestamp AX DM DR FM FX HD IN MO MY SR TW
2 48904 2025-03-12 07:57:00 0 0.00 12.1 0.69 0 0 0 12.1 0 0 59.2
3 48905 ...
0
votes
1
answer
62
views
Compare a column of strings with a 5 column and 3724 rows list and return cell addresses when matching
This is a related question to excel-get-in-one-cell-all-the-cells-containing-specific-text which does the trick, but for a smaller list.
Can someone help out to find it for my 5 column and 3724 rows ...
-3
votes
1
answer
112
views
Compare rows in excel worksheets
Sheet1 (tab-seperated)
Request Barcode Name Test Urgency Date Time Action
25-943 25042A GEOFF MYA-0 01/03/2025 14:47 send
25-1082 76605 JAMES M2-0 01/03/2025 16:12 ...
-1
votes
1
answer
62
views
Why is System.Collections.IComparer not working as expected with null Cells of a DataGridView? [closed]
I have a DataGridView "dg" and I'm trying to sort it by using the numeric values in the DataGridViewColumn "c_seq". If the number is null, zero or negative, it should be at the ...