Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - ignore whitespace when comparing files using compare-object?

Reply
 
Old 03-05-2009   #1 (permalink)
bigdave64


 
 

ignore whitespace when comparing files using compare-object?

I was using compare-object recently to compare some text files. I quickly
discovered that there doesn't seem to be any way to tell compare-object to
ignore white space differences. Unfortunately, this made compare-object
almost useless to me, so I switched to gnuwin32 diff, which is much more
fully featured.

Does anyone know whether compare-object will have more options/features
under PS 2.0, such as 'ignore whitespace' (-w switch with gnuwin32 diff).

My System SpecsSystem Spec
Old 03-06-2009   #2 (permalink)
Shay Levy [MVP]


 
 

Re: ignore whitespace when comparing files using compare-object?

Hi bigdave64,


If you want to have that kind of support in v2 then by all means file a suggestion
on connect.microsoft.com. Post back the url so others can vote for it.


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar



b> I was using compare-object recently to compare some text files. I
b> quickly discovered that there doesn't seem to be any way to tell
b> compare-object to ignore white space differences. Unfortunately,
b> this made compare-object almost useless to me, so I switched to
b> gnuwin32 diff, which is much more fully featured.
b>
b> Does anyone know whether compare-object will have more
b> options/features under PS 2.0, such as 'ignore whitespace' (-w switch
b> with gnuwin32 diff).
b>


My System SpecsSystem Spec
Old 03-10-2009   #3 (permalink)
bigdave64


 
 

Re: ignore whitespace when comparing files using compare-object?

Ok - good idea. Here you go:

https://connect.microsoft.com/feedba...2273&SiteID=99


"Shay Levy [MVP]" wrote:
Quote:

> Hi bigdave64,
>
>
> If you want to have that kind of support in v2 then by all means file a suggestion
> on connect.microsoft.com. Post back the url so others can vote for it.
>
>
> ---
> Shay Levy
> Windows PowerShell MVP
> http://blogs.microsoft.co.il/blogs/ScriptFanatic
> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>
>
>
> b> I was using compare-object recently to compare some text files. I
> b> quickly discovered that there doesn't seem to be any way to tell
> b> compare-object to ignore white space differences. Unfortunately,
> b> this made compare-object almost useless to me, so I switched to
> b> gnuwin32 diff, which is much more fully featured.
> b>
> b> Does anyone know whether compare-object will have more
> b> options/features under PS 2.0, such as 'ignore whitespace' (-w switch
> b> with gnuwin32 diff).
> b>
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: ignore whitespace when comparing files using compare-object? PowerShell
Re: ignore whitespace when comparing files using compare-object? PowerShell
Comparing files with compare-object PowerShell
Testing object arrays using Compare-Object and -contains PowerShell
Adding canonical aliases for Compare-Object, Measure-Object, New-Object PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46