![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||