News for hackers. Stuff that matters.
Re:In defense of PowerShell by slavik81 on Tuesday August 25, 2015 @07:28PM (#10120139)
Yeah, actually. Though, I'd still include the cast to int, because I need to sort numerically, not lexicographically.

I suppose the lesson is that if you want to preserve line order, you need to use -raw to prevent Get-Content (cat) from splitting the file into multiple lines. That still ruins the output text from Compare-Object (diff), but it's cleaner than fc.exe.

Thanks.

There are no comments on this comment yet.