home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!kc
- From: kc@netcom.com (Dameon D. Welch)
- Subject: diff to return a value in a shell script?
- Message-ID: <yy9mlkb.kc@netcom.com>
- Date: Mon, 17 Aug 92 17:50:42 GMT
- Organization: Wayne's World, Inc -- NOT!
- Lines: 12
-
- I'm writing a shell script under HP/UX 8.07 that will preform its task
- if and only if any changes were made to the file. I need to have diff
- somehow return only an integer value or some other method of determining
- an error, no differences, or that there are diffs. I've read the man
- page on diff and it does not specify an option to get what I want.
-
- Any ideas?
- --
- Dameon Welch, NH6TW
- kc@netcom.com +-----------------------------------------+
- Engineering Design Center | Help, I'm trapped in a .signature file! |
- Santa Clara University +-----------------------------------------+
-