Skip to content

wansing/permute-variants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

permute-variants

Create all permutations of words, where each word can have different variants (spellings, notations).

Build

git clone https://github.com/wansing/permute-variants
cd permute-variants
go build

Usage

./permute-variants file1 file2 ...

Example

$ cat a.txt
apple
banana
cherry

$ cat b.txt
apartment
house
tent

$ ./permute-variants a.txt b.txt
appleapartment
applehouse
appletent
bananaapartment
bananahouse
bananatent
cherryapartment
cherryhouse
cherrytent
apartmentapple
houseapple
tentapple
apartmentbanana
housebanana
tentbanana
apartmentcherry
housecherry
tentcherry

Or pipe the output into a file:

$ ./permute-variants a.txt b.txt > output.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages