CLI program that takes tabular data as input and maps a random command to each input column.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blob42 ad9404dd32 wip text splitting into columns 1 year ago
src wip text splitting into columns 1 year ago
.gitignore initial commit 1 year ago
Cargo.lock initial commit 1 year ago
Cargo.toml initial commit 1 year ago
README.md udpate 1 year ago
github-protest.md add github protest 1 year ago

README.md

Colmap

CLI program that takes tabular data as input and maps a random command to each input column. It works in a similar way to awk or xargs in that the input text is converted into fields and the user supplied commands are executed on each matched column (field)

Example

INPUT:

         field #1                 field #2
|--------------------------|   |--------------|
/long/path/to/some/ebook.pdf   | Title Of Ebook
                                 ____
                                  \
example usage:                     \
--------------                      \__________________
                                                    ___\_
colmap --field-1='basename {}'  --field-2="awk { print $1 }"
colmap -f1 'basename {}' -f2 'awk { print $1 }'
  • use colon as delimiter

    colmap -d':'

WILL OUPUT:

ebook.pdf | Title


I am using Github under protest

TODO:

[ ] use non-dashed approach to cli (rwxrob/bonzai)