/csvrepeat

CSV of the form word,weight will be o/p with the words repeating that many times in a newline

Primary LanguageGoMIT LicenseMIT

csvrepeat

csvrepeat is a command line tool that repeats the word in the CSV file the number of times against it.

Example of CSV file

linux,3
bsd,2

When the above file is passed to the tool, the o/p will be:

linux
linux
linux
bsd
bsd

Usage of the tool

go install
./csvrepeat <path/to/csv>

Why was this developed?

Online tag-cloud platforms expect input in the format generated by this tool.