Pages

Sep 18, 2007

misc: powershell compare-object to compare text files...

i guess i'm hooked because here i am again writing about this stuff. anyway, this was just too cool to pass up. using one line, you can compare two text files:
compare-object $(get-content file1.txt) $(get-content file2.txt)
didn't say the stuff was complicated. :)