home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9351 < prev    next >
Encoding:
Text File  |  1992-08-17  |  886 b   |  22 lines

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