Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

[help] compare in ps

$
0
0

Compare-Object $(Get-Content C:\Users\Desktop\Deployment\a.txt) $(Get-Content C:\Users\Desktop\Deployment\b.txt) -includeequal

 

I have this script already. Can you help me how can iput this in an output file? and also is there a way like notepad++ plugin thet compare what lines it differ?

 

like if the first script contains:

Hello

World

 

second scripts contains

Hello

World1

So how can it specify the difference is just the number (1)?


Viewing all articles
Browse latest Browse all 6937

Trending Articles