Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentriz/beside
unix pipeline stage with before and after preview
https://github.com/sentriz/beside
Last synced: 3 days ago
JSON representation
unix pipeline stage with before and after preview
- Host: GitHub
- URL: https://github.com/sentriz/beside
- Owner: sentriz
- Created: 2023-11-24T18:51:19.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-25T17:55:56.000Z (about 1 year ago)
- Last Synced: 2024-12-11T22:05:16.871Z (22 days ago)
- Language: Go
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
unix pipeline stage with before and after preview
(probably only useful if there is a 1-1 relationship between stdin and subproc's stdout)
(it's not at problem if subproc buffers its stdout since it's drained in parallel with stdin)to install
$ go install go.senan.xyz/beside@master
$ cat names
alice
bob
mick$ cat names | beside sed "s/.*/\U&/"
alice ALICE
bob BOB
mick MICKit works for streams too
$ yes yes! | beside yes no! | head -n 3
yes! no!
yes! no!
yes! no!$ printf "%s\n" "today" "yesterday" "tuesday" | beside date +%s -f -
today 1700851529
yesterday 1700765129
tuesday 1701129600$ jq