Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mcdchg!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.questions Subject: Re: how to compare file modification time (whole dir tree?) Message-ID: <1990Jul27.153223.12416@chinet.chi.il.us> Date: 27 Jul 90 15:32:23 GMT References: <1990Jul23.233044.2729@silma.com> <1990Jul25.193309.16455@usenet.ins.cwru.edu> Organization: Chinet - Public Access UNIX Lines: 13 >>newer file1 file2 >>that returns 0 if file1 is newer than file2 else returns 1 I would like something a little more ambitious. Given two machines (non-network) that have had files transfered with cpio -m (keep mod dates) and some files changed on each machine, what is the best way to find all the changed files? Also, is there a handy way to set the timestamp on a directory to that of the newest file below it? This would help to avoid the problem above and might be used in a first pass of the comparison. Les Mikesell les@chinet.chi.il.us