PowerShell: Comparing 2 Text Files::

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

JohnE
John EsraeloDatabase / SQL DeveloperAsked:
Who is Participating?
 
AnuroopsunddConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.