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.
29 lines
694 B
Markdown
29 lines
694 B
Markdown
2 years ago
|
# Colmap
|
||
|
|
||
|
- CLI program that takes tabular data as input and maps a random
|
||
|
command to each input column.
|
||
|
|
||
|
## 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
|