Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

exupero/like

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Like

Utilities for finding similar things.

like

Returns the line of input that most closely matches the given text.

cat names | like wombat

find-like

Returns the filename in a set of directories that most closely matches the given text.

find-like app/models/user.rb tests spec

lsort

Sorts lines from stdin by Levenshtein distance.

cat names | lsort

Options:

  • -w calculate Levenshtein distance using words instead of letters.

lgraph

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages