Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site soessx.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!akguc!soessx!pls From: pls@soessx.UUCP (P.L.Sullivan) Newsgroups: net.wanted.sources Subject: Re: anyone has a "ls" with date option? Message-ID: <713@soessx.UUCP> Date: Mon, 9-Sep-85 11:31:34 EDT Article-I.D.: soessx.713 Posted: Mon Sep 9 11:31:34 1985 Date-Received: Tue, 10-Sep-85 04:11:50 EDT References: <214@uw-june> Reply-To: pls@soessx.UUCP (P.L.Sullivan) Distribution: net Organization: AT&T Tech-NS, Atlanta Lines: 25 In article <214@uw-june> kwan@uw-june (Sai Choi Kwan) writes: >Does anyone have a 'ls' program that accepts a date and list only files that >have been created or modified since that specified date? Not exactly what you asked for, but maybe what you need: find pathname -mtime -days -exec ls -ld {} \; where days is days age, not a date; e.g., if days is 4 this lists all files in (and under) pathname that have been modified in the last 4 days. >Even better, the program can list files that are created or modified between >two dates. You can also do that with find: find pathname -mtime -7 -mtime +5 -exec ls -ld {} \; lists all files modified between 5 and 7 days ago. If all you want is the file names, end the command line just before "-exec". Pat Sullivan {ihnp4}!soessx!pls