Skip to content

ramn/joinlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

TODO

  • Support ignoring lines starting with a prefix

About

CLI util for joining lines of a text file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published