home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3474 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  693 b 

  1. Path: sparky!uunet!decwrl!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
  2. Newsgroups: comp.unix.shell
  3. Subject: Re: challenge: hex sort
  4. Message-ID: <1992Aug13.075616.25126@ccu1.aukuni.ac.nz>
  5. From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
  6. Date: Thu, 13 Aug 1992 07:56:16 GMT
  7. References: <h1-ytad@rpi.edu>
  8. Organization: University of Auckland, New Zealand.
  9. Lines: 9
  10.  
  11. fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald) writes:
  12.  
  13. >Write a shell script to sort hex in numerical order.
  14.  
  15. tr [a-f] [A-F] | awk ' { printf "%80s\n",$1 } ' | sort | awk ' { print $1 } '
  16. -- 
  17. Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
  18. The joy of engineering is to find a straight line on a double logarithmic
  19. diagram.
  20.