https://github.com/wheaney/bashful-raffle
Bash script for performing a fair raffle
https://github.com/wheaney/bashful-raffle
bash raffle
Last synced: about 2 months ago
JSON representation
Bash script for performing a fair raffle
- Host: GitHub
- URL: https://github.com/wheaney/bashful-raffle
- Owner: wheaney
- Created: 2024-10-06T20:20:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-31T20:47:39.000Z (over 1 year ago)
- Last Synced: 2025-03-28T19:55:27.235Z (about 1 year ago)
- Topics: bash, raffle
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bashful-raffle
Bash script for performing a fair raffle.
## Usage
Check out the git repo, or `wget https://raw.githubusercontent.com/wheaney/bashful-raffle/refs/heads/main/raffle.sh && chmod +x raffle.sh`
### Interactive
Just run with `raffle.sh` and follow the prompts.
### One-liner
First value is the number of winners, all remaining values are entrants. An entrant followed by a number (separated by a space)
will have that number of entries.
## Example
This will choose 3 winners, where Jane has 2 entries in the contest, and all other entrants have a single entry.
```bash
raffle.sh << EOF
3
Dick
Jane 2
Bob
Spot
EOF
```