#command-line-tool #pipe #utility #cli #parallel-execution

app joyn

Join input files. Create one thread for each input file that reads a line, and write a line each time any thread reads it.

6 releases

0.4.0 Feb 2, 2023
0.2.4 Jan 24, 2023
0.1.10 Jan 23, 2023

#2361 in Command line utilities

MIT/Apache

9KB
162 lines

joyn

A command-line utility to join input files. Create a thread for each input file that reads a line, and write a line each time any thread reads it.

Keywords: command line utility, pipe, parallel execution

Homepage: https://github.com/tos-kamiya/joyn/

Usage

joyn file1 file2 ...

Read input files and their content lines and output them. The order of lines in the output is "interleaved". That is, unlike the cat command, lines in the file specified earlier in the command line may be output later.

However, the expected use of joyn is to invoke the processes that run command lines and merge their output lines. In the case of bash shell, this usage can be accomplished with a command line such as:

joyn <(command line 1) <(command line 2) ...

Dependencies

~1.3–1.9MB
~37K SLoC