PowerShell: Comparing 2 Text Files::

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

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)
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.

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.