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 | 1 year ago | |
---|---|---|
src | 1 year ago | |
.gitignore | 1 year ago | |
Cargo.lock | 1 year ago | |
Cargo.toml | 1 year ago | |
README.md | 1 year ago | |
github-protest.md | 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)