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.

52 lines
1.0 KiB
Markdown

1 year ago
# 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)
1 year ago
## Example
INPUT:
-----
1 year ago
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 }'
1 year ago
- use colon as delimiter
1 year ago
colmap -d':'
1 year ago
WILL OUPUT:
----------
ebook.pdf | Title
---
[I am using Github under protest](protest.md)
TODO:
----
[ ] use non-dashed approach to cli (rwxrob/bonzai)