Guest User

Untitled

a guest
Mar 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. hash@ssl50:~$ cowsay -f tux "Carry on"
  2.  
  3. < carry on >
  4. ----------
  5.  
  6.  
  7. .--.
  8. |o_o |
  9. |:_/ |
  10. //
  11. (| | )
  12. /'_ _/`
  13. ___)=(___/
  14.  
  15. $HOME/cowscript
  16.  
  17. #!/bin/bash
  18. RANGE=4
  19.  
  20. number=$RANDOM
  21. let "number %= $RANGE"
  22. case $number in
  23. 0)
  24. cow="small"
  25. ;;
  26. 1)
  27. cow="tux"
  28. ;;
  29. 2)
  30. cow="koala"
  31. ;;
  32. 3)
  33. cow="moose"
  34. ;;
  35. esac
  36.  
  37. RANGE=2
  38. number=$RANDOM
  39. let "number %= $RANGE"
  40. case $number in
  41. 0)
  42. command="/usr/games/cowsay"
  43. ;;
  44. 1)
  45. command="/usr/games/cowthink"
  46. ;;
  47. esac
  48. /usr/games/fortune | $command -f $cow
  49.  
  50. cowsay -l
  51.  
  52. 4)
  53. cow="udder"
  54. ;;
  55.  
  56. export COWPATH="/usr/share/cowsay/cows"
  57. # set COWPATH so it includes user's cows
  58. if [ -d "$HOME/cowfiles" ] ; then
  59. COWPATH="$COWPATH:$HOME/cowfiles"
  60. fi
  61.  
  62. fortune | cowsay -f tux
  63.  
  64. fortune | cowsay -f `ls /usr/share/cowsay/cows/ | shuf -n 1`
  65.  
  66. ___________________________________
  67. / Q: Who cuts the grass on Walton's
  68. Mountain? A: Lawn Boy. /
  69. -----------------------------------
  70.  
  71. , _ ___.--'''`--''//-,-_--_.
  72. `"' ` || \ \/ / // / ,-\`,_
  73. /'` || Y | |/ / // / - |__ `-,
  74. /@" ` ` | | ||/ // | / `-._`-,_.,
  75. / _.-. `.-,___/ _/|_/__/|_/ | `-._._)
  76. `-'``/ / | // __/__ / __/
  77. `-' /-/ | -| __ |-' |
  78. __/ / _/ / __,-' ) ,' _|'
  79. (((__/(((_.' ((___..-'((__,'
  80.  
  81. fortune | `ls /usr/games/cow* | shuf -n 1` -f `ls /usr/share/cowsay/cows/ | shuf -n 1`
  82.  
  83. fortune | cowsay -f turtle
  84.  
  85. $ sudo apt-get install fortune-mod fortunes-ubuntu-server fortunes-off fortunes-bofh-excuses fortunes-debian-hints fortunes-spam cowsay
Add Comment
Please, Sign In to add comment