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.
- Host: GitHub
- URL: https://github.com/tos-kamiya/joyn
- Owner: tos-kamiya
- Created: 2023-01-23T16:49:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-18T18:47:16.000Z (about 2 years ago)
- Last Synced: 2025-02-10T02:47:38.381Z (11 months ago)
- Topics: cli-utility, parallel-execution, pipe
- Language: Rust
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README-cratesio.md
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) ...
```