home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!aukuni.ac.nz!mercury!fivegl!hugh
- Newsgroups: comp.unix.sysv386
- Subject: Re: /dev/fd and ksh under SVR4?
- Message-ID: <1992Jul27.045937.19974@nezsdc.icl.co.nz>
- From: hugh@nezsdc.icl.co.nz (Hugh Grierson)
- Date: Mon, 27 Jul 92 04:59:37 GMT
- References: <JHPB.92Jul21183240@sarto.budd-lake.nj.us>
- Organization: Fujitsu New Zealand
- Lines: 23
-
- In article <JHPB.92Jul21183240@sarto.budd-lake.nj.us> jhpb@sarto.budd-lake.nj.us (Joseph H. Buehler) writes:
- >Does anyone know why /dev/fd is referenced in the SVR4 ksh binary? I
- >am wondering if this ksh supports something like
- >
- > diff $(<cat /etc/passwd) $(<cat /etc/passwd)
-
- Try:
- diff <(cat /etc/passwd) <(cat /etc/passwd)
- and echo <(cat /etc/passwd) <(cat /etc/passwd)
-
- Or this sort of command may be more useful:
- diff <(hd file1) <(hd file2)
- diff <(strings file1|sort -u) <(strings file2|sort -u)
-
- >but it's just not documented?
-
- Hmm, I can't seem to find it there. Curious.
-
-
- --
- Hugh Grierson Fujitsu New Zealand - Software Development Centre
- NEW IMPROVED ADDRESS: hugh@nezsdc.icl.co.nz Speaking for myself, etc
- Watch this space.
-