line_diff

line_diff is a small tool that I wrote to make comparing long text lines easier. Sometimes you want to compare a long PATH variable or a long command line call and all you get from the compare tool is that they are somehow different, but it’s now easy to spot how or where.

This is where line_diff comes in handy. It just splits the line into multiple chunks according to one or multiple separators and then compares the chunks. Furthermore you can first sort the chunks. This is handy when the two lines are not ordered the same way (for example PATH variables from different machines).

line_diff is written in Rust and available on crates.io. The source code is on Github.

Leave a Reply

Your email address will not be published. Required fields are marked *