home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume9 / rndname3 / names.csh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1989-11-08  |  398b  |  21 lines

  1. #! /bin/csh
  2. # names - generate random names
  3. #
  4. # usage: names [pages]
  5. # where 'pages' is how many pages of names you want.  Default = 1 page.
  6.  
  7. if ($#argv == 0) then
  8.     @ n = 336
  9. else 
  10.     @ n = 336 * $1
  11. endif
  12.  
  13. # BSD script -- uncomment this line if BSD
  14. name $n | sort -u | pr -6 | expand
  15.  
  16. # sysv script -- uncomment this line if SYSV
  17. # note: no tab expansion performed
  18.  
  19. #name $n | sort -u | pr -6
  20.  
  21.