Crates.io | reveal-cli |
lib.rs | reveal-cli |
version | 0.1.0 |
source | src |
created_at | 2024-10-25 09:19:19.267534 |
updated_at | 2024-10-25 09:19:19.267534 |
description | Interactively reveal lines from a file or `stdin`, one line at a time. |
homepage | |
repository | https://github.com/eddieantonio/reveal |
max_upload_size | |
id | 1422264 |
size | 42,505 |
Interactively reveal lines from a file or stdin
, one line at a time.
You can reveal lines from a file:
$ reveal example.txt
Or you can reveal lines from standard input:
cmd | reveal
Imagine you're holding a raffle at a meetup. You're going to give away 3 prizes. All of the attendees have been assigned a number, from 1 to 30.
seq 30 | ...
Now shuffle the members (requires GNU shuf
):
seq 30 | shuf | ...
Select only the first 3:
seq 30 | shuf | head -3 | ...
And now add suspense by using reveal
!
seq 30 | shuf | head -3 | reveal
Copyright © 2024 Eddie Antonio Santos.
See LICENSE
for details.