Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- [ -z $1 ] && echo "Usage: $0 listfile.txt" && exit 1
- IFS=$'\r\n'
- LIST=($(cat $1))
- RNG=($(shuf -i 0-$(( ${#LIST[@]} - 1)) -n 25))
- I=0
- for X in {1..25};
- do convert -background white -size 120x120 -gravity Center -weight 500 -pointsize 14 caption:"${LIST[${RNG[${I}]}]}" cell${X}.png
- I=$(( $I + 1 ))
- done
- montage -frame 3 cell*png bingo.png
- rm cell*png
Add Comment
Please, Sign In to add comment