F5F Stay Refreshed Software Operating Systems Comparing .txt files

Comparing .txt files

Comparing .txt files

Q
Queffect
Member
219
04-20-2023, 09:43 PM
#1
I have several files I want to examine. I'm looking to check if the contents of file 1.txt match parts from another .txt file. However, I require a program that can scan multiple files at once. All the comparison tools I've seen only handle a few files and ask you to specify which ones to compare.
Q
Queffect
04-20-2023, 09:43 PM #1

I have several files I want to examine. I'm looking to check if the contents of file 1.txt match parts from another .txt file. However, I require a program that can scan multiple files at once. All the comparison tools I've seen only handle a few files and ask you to specify which ones to compare.

S
sanskimostsub
Junior Member
13
04-20-2023, 10:08 PM
#2
Possibly FreeFileSync?
FreeFileSync
Download FreeFileSync 14.6. This open source backup tool assists in syncing files and folders across Windows, Linux, and macOS.
freefilesync.org
That is MUCH more problematic.
The term "the" or the link "http" appears frequently in thousands of my text documents. At what extent do you encounter "part of"?
S
sanskimostsub
04-20-2023, 10:08 PM #2

Possibly FreeFileSync?
FreeFileSync
Download FreeFileSync 14.6. This open source backup tool assists in syncing files and folders across Windows, Linux, and macOS.
freefilesync.org
That is MUCH more problematic.
The term "the" or the link "http" appears frequently in thousands of my text documents. At what extent do you encounter "part of"?

F
FITZA17
Junior Member
25
04-21-2023, 02:38 AM
#3
You can process the text file once and check for matches across other .txt files without rechecking each one individually.
F
FITZA17
04-21-2023, 02:38 AM #3

You can process the text file once and check for matches across other .txt files without rechecking each one individually.

P
Pihvi
Member
50
04-25-2023, 10:31 AM
#4
As mentioned, this may cause issues.
P
Pihvi
04-25-2023, 10:31 AM #4

As mentioned, this may cause issues.

A
AlexBun
Junior Member
21
04-25-2023, 02:29 PM
#5
Actually, you can perform this directly within Windows File Explorer.
Search for your desired sentence in a specified folder.
If necessary, include quotes at the beginning and end.
I just tried this on a brand new .txt file with a few words, saved on the Desktop.
It was found quite quickly.
A
AlexBun
04-25-2023, 02:29 PM #5

Actually, you can perform this directly within Windows File Explorer.
Search for your desired sentence in a specified folder.
If necessary, include quotes at the beginning and end.
I just tried this on a brand new .txt file with a few words, saved on the Desktop.
It was found quite quickly.

A
AzeDark
Member
73
04-25-2023, 05:14 PM
#6
Sure, happy to help! Let me know if you need anything else.
A
AzeDark
04-25-2023, 05:14 PM #6

Sure, happy to help! Let me know if you need anything else.

X
Xanturvan
Member
161
04-25-2023, 09:02 PM
#7
you can employ the findstr.exe command to locate specific text within files
https://learn.microsoft.com/en-us/window...ds/findstr
it supports searching through directories and subfolders, using wildcards to define file types.
*.txt will scan all files with a .txt extension.
you may also
utilize an input file containing the strings you wish to look for.
- it can explore subdirectories
- examine binary files
- apply an input file to choose which files to inspect or use wildcards
this tool also enables searching for binary patterns, making it valuable for detecting hidden pooltags in device drivers for debugging issues such as kernel memory leaks.
X
Xanturvan
04-25-2023, 09:02 PM #7

you can employ the findstr.exe command to locate specific text within files
https://learn.microsoft.com/en-us/window...ds/findstr
it supports searching through directories and subfolders, using wildcards to define file types.
*.txt will scan all files with a .txt extension.
you may also
utilize an input file containing the strings you wish to look for.
- it can explore subdirectories
- examine binary files
- apply an input file to choose which files to inspect or use wildcards
this tool also enables searching for binary patterns, making it valuable for detecting hidden pooltags in device drivers for debugging issues such as kernel memory leaks.

B
Bartekdwarf
Posting Freak
791
04-26-2023, 02:46 AM
#8
Also explore the Compare-Object cmdlet in PowerShell.
https://learn.microsoft.com/en-us/powers...rshell-7.5
You'll discover several related resources.
PowerShell comes pre-installed with Windows.
You might also find additional commands (like "Get-") and scripts that offer greater accuracy and flexibility.
Highly adaptable.
Begin with the basics and progress from there.
Remember to safeguard all critical files beforehand and test in a safe environment.
B
Bartekdwarf
04-26-2023, 02:46 AM #8

Also explore the Compare-Object cmdlet in PowerShell.
https://learn.microsoft.com/en-us/powers...rshell-7.5
You'll discover several related resources.
PowerShell comes pre-installed with Windows.
You might also find additional commands (like "Get-") and scripts that offer greater accuracy and flexibility.
Highly adaptable.
Begin with the basics and progress from there.
Remember to safeguard all critical files beforehand and test in a safe environment.