Path: utzoo!attcan!uunet!silma!aab From: aab@silma.com (Andy Burgess) Newsgroups: comp.unix.questions Subject: how to compare file modification time in bourne shell script Message-ID: <1990Jul23.233044.2729@silma.com> Date: 23 Jul 90 23:30:44 GMT Reply-To: aab@silma.UUCP () Organization: Silma, Inc. Cupertino CA Lines: 16 I need to compare the modification times of two files in a bourne shell script. I would like to do this without writing C code. Machine is Sparcstation 1 running SunOS 4.03c Thus I need a function: newer file1 file2 that returns 0 if file1 is newer than file2 else returns 1 Can it be done? Andy Burgess uunet!silma!aab 408 725 8908