home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12538 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.1 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!aukuni.ac.nz!mercury!fivegl!hugh
  2. Newsgroups: comp.unix.sysv386
  3. Subject: Re: /dev/fd and ksh under SVR4?
  4. Message-ID: <1992Jul27.045937.19974@nezsdc.icl.co.nz>
  5. From: hugh@nezsdc.icl.co.nz (Hugh Grierson)
  6. Date: Mon, 27 Jul 92 04:59:37 GMT
  7. References: <JHPB.92Jul21183240@sarto.budd-lake.nj.us>
  8. Organization: Fujitsu New Zealand
  9. Lines: 23
  10.  
  11. In article <JHPB.92Jul21183240@sarto.budd-lake.nj.us> jhpb@sarto.budd-lake.nj.us (Joseph H. Buehler) writes:
  12. >Does anyone know why /dev/fd is referenced in the SVR4 ksh binary?  I
  13. >am wondering if this ksh supports something like
  14. >
  15. >    diff $(<cat /etc/passwd) $(<cat /etc/passwd)
  16.  
  17. Try:
  18.     diff <(cat /etc/passwd) <(cat /etc/passwd)
  19. and echo <(cat /etc/passwd) <(cat /etc/passwd)
  20.  
  21. Or this sort of command may be more useful:
  22.     diff <(hd file1) <(hd file2)
  23.     diff <(strings file1|sort -u) <(strings file2|sort -u)
  24.  
  25. >but it's just not documented?
  26.  
  27. Hmm, I can't seem to find it there.  Curious.
  28.  
  29.  
  30. -- 
  31. Hugh Grierson             Fujitsu New Zealand - Software Development Centre
  32. NEW IMPROVED ADDRESS: hugh@nezsdc.icl.co.nz        Speaking for myself, etc
  33. Watch this space.
  34.