home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2430 / lookoutpepe next >
Encoding:
Text File  |  1991-01-01  |  1.2 KB  |  35 lines

  1. #! /bin/csh
  2. cp /dev/null pepehistory
  3. echo "-----" >> pepehistory
  4. echo "Pepe\!  Look out\!" >> pepehistory
  5. echo "Oops\!" >> pepehistory
  6. echo "-----" >> pepehistory
  7. pepezap 512 < pepedata >> pepehistory
  8. echo "Could we see that on slo-mo replay, please?" >> pepehistory
  9. echo "-----" >> pepehistory
  10. foreach i (1 2 4 8 16 32 64 128 256 512)
  11. pepezap $i < pepedata >> pepehistory
  12. end
  13. echo "Don't despair Pepe, we can sort that right out\!" >> pepehistory
  14. echo "-----" >> pepehistory
  15. pepesort 63 < pepedata >> pepehistory
  16. echo "Damn\!  That didn't work; have to try it the hard way\!" >> pepehistory
  17. echo "Zzzzzzt\!" >> pepehistory
  18. echo "-----" >> pepehistory
  19. pepezap 512 < pepedata >> pepehistory
  20. echo "Shuffle to the left\!" >> pepehistory
  21. echo "Shuffle to the right\!" >> pepehistory
  22. echo "Shuffle poor Pepe\!" >> pepehistory
  23. echo "Fight\! Fight\! Fight\!" >> pepehistory
  24. echo "-----" >> pepehistory
  25. foreach i (9 18 27 36 45 54)
  26. pepebarezap 512 < pepedata | pepebacksort $i >> pepehistory
  27. end
  28. echo "Now the other way\!" >> pepehistory
  29. echo "-----" >> pepehistory
  30. foreach i (63 60 57 54 51 48 45 42 39 36 27 18 9 0)
  31. pepeunsort $i < pepedata >> pepehistory
  32. end
  33. echo "All better\!" >> pepehistory
  34. cat pepehistory
  35.