Guest User

Untitled

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