An open API service indexing awesome lists of open source software.

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

Join input files. Create a thread for each input file that reads a line, and write a line each time any thread reads it.
https://github.com/tos-kamiya/joyn

cli-utility parallel-execution pipe

Last synced: 10 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

```sh
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:

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