Utilities for finding similar things.
Returns the line of input that most closely matches the given text.
cat names | like wombat
Returns the filename in a set of directories that most closely matches the given text.
find-like app/models/user.rb tests spec
Sorts lines from stdin by Levenshtein distance.
cat names | lsort
Options:
-w
calculate Levenshtein distance using words instead of letters.
Creates a graph of lines from stdin by Levenshtein distance.
Default output is 3 integers: a line number, the line number of the line that most closely matches the line at the first line number, and the Levenshtein distance between the two lines.
cat names | lgraph
Options:
-w
calculate Levenshtein distance using words instead of letters-l
print whole lines instead of line numbers (takes four lines per edge rather than one)