jez / collate-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collate

Command line filter for collating the top and bottom halves of a file

❯ cat foo.txt
1
2
3
a
b
c

❯ collate < foo.txt
1
a
2
b
3
c

❯ collate < foo.txt | uncollate
1
2
3
a
b
c

Install

To install from GitHub:

cargo install -f --git https://github.com/jez/collate-rs

To install from a clone:

git clone git@github.com:jez/collate-rs.git
make install

Testing

# All the tests:
make test

# One specific test:
make test/06-six.txt.collate.exp

License

MIT License

About

License:Other


Languages

Language:Rust 85.0%Language:Makefile 15.0%