Guest User

Untitled

a guest
Nov 20th, 2017
99
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. #
  3. # i am saying it for the n'th time!
  4. # e.g.
  5. # shoes 4 # only repeat myself 4 times
  6. # shoes # 10 times by default
  7. #
  8. # ds 2017-11-18
  9.  
  10. if [[ $1 == "" ]]; then
  11. n=10
  12. else
  13. n=$1
  14. fi
  15.  
  16. for i in $(seq 1 ${n}); do
  17. nth=$(Rscript -e "cat(toOrdinal::toOrdinal(${i}))")
  18. say "For the ${nth} time. [[slnc 400]] Put on your shoes...";
  19. done
Add Comment
Please, Sign In to add comment