• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 642
  • Last Modified:

PowerShell: Comparing 2 Text Files::

Hello team,
Is there a way to compare 2 text files using PowerShell?
thx

JohnE
0
John Esraelo
Asked:
John Esraelo
1 Solution
 
AnuroopsunddCommented:
Compare-Object $(Get-Content c:\scripts\x.txt) $(Get-Content c:\scripts\y.txt)
0
 
John EsraeloDatabase / SQL DeveloperAuthor Commented:
Fantastic, easy to remember and don't have to worry about the loops..
thank you and have a nice weekend.

JohnE
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now