https://github.com/isaaguilar/joinby
A little bin to convert whitespaces to commas (via command line or pipes)
https://github.com/isaaguilar/joinby
cli-tool cpp
Last synced: 11 months ago
JSON representation
A little bin to convert whitespaces to commas (via command line or pipes)
- Host: GitHub
- URL: https://github.com/isaaguilar/joinby
- Owner: isaaguilar
- License: apache-2.0
- Created: 2022-05-17T14:38:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-09T06:54:05.000Z (about 4 years ago)
- Last Synced: 2025-04-06T01:26:07.673Z (over 1 year ago)
- Topics: cli-tool, cpp
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# joinby
A little bin to convert whitespaces to commas (via command line or pipes)
## Usage
Once the bin is built and in your `$PATH`, the `joinby` command can by run 2 different ways:
```bash
# Usage #1:
$ joinby [char] [args...]
# Usage #2
$ ... | joinby [char]
```
The following examples will produce the same result:
```bash
$ joinby ',' this will be joined by commas
# and
$ echo "this will be joined by commas" | joinby ','
# Output:
this,will,be,joined,by,commas
```
## Installation
Build the `joinby.cpp` file using any compiler with c++17.
For MacOS with `clang++`, this command may work:
```bash
clang++ -std=c++17 -stdlib=libc++ -Wall -pedantic joinby.cpp -o joinby
```
Then copy the bin to `/usr/local/bin`
```bash
mv joinby /usr/local/bin
```