joinlines

Crates.iojoinlines
lib.rsjoinlines
version0.3.1
sourcesrc
created_at2016-02-05 18:23:03.829126
updated_at2016-02-06 17:05:53.258617
descriptionCLI util for joining lines of a text file
homepagehttps://github.com/ramn/joinlines
repositoryhttps://github.com/ramn/joinlines
max_upload_size
id4088
size13,456
Simon Andersson (ramn)

documentation

README

Joinlines

Joins two blocks of text, such that row 1 of the first block will be appended to row 1 of the second block and so on.

Input is read from stdin until EOF, output to stdout. The the first half of the input lines will become the first block.

Install

cargo install joinlines

Example

# cat f.txt
1
2
3
a
b
c

# joinlines ',' < f.txt
1,a
2,b
3,c

Test

make test

Commit count: 17

cargo fmt