From owner-freebsd-questions Mon Nov 23 05:22:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA13861 for freebsd-questions-outgoing; Mon, 23 Nov 1998 05:22:37 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from src.in-net.fr (src.IN-net.fr [193.106.183.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA13843 for ; Mon, 23 Nov 1998 05:22:33 -0800 (PST) (envelope-from Eric.Feillant@image-nouvelle.fr) Received: from fix.localnet.net (193.107.211.55) by src.in-net.fr (Worldmail 1.3.167) for freebsd-questions@freebsd.org; 23 Nov 1998 14:19:27 +0100 Message-ID: <36596999.59E2B600@image-nouvelle.fr> Date: Mon, 23 Nov 1998 13:56:41 +0000 From: Eric Feillant X-Mailer: Mozilla 3.04 (X11; I; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: In Bourne SHell: How compare and test file size ???? URGENT Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Message-ID: <36594B8D.2781E494@image-nouvelle.fr> Date: Mon, 23 Nov 1998 11:48:29 +0000 From: Eric Feillant X-Mailer: Mozilla 3.04 (X11; I; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: How compare and test file size ???? URGENT Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi, can someone help me about this ==> I have a directory named "dir1" with some files and subdir inside. Some users can generate new files or modify files in these "dir" directory. How can i write a script that coud be run every 15 minutes that test that files has been modified and / or created ? i thout that some script shell with awk coud do that for me => ls -lR dir1 | awk '{print $5, $9} | while read A B do ..... something .... test current file size with old file size ...then ...??? Thanx for help me. eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message