Date: Mon, 23 Nov 1998 12:05:10 +0000 From: Karl Pielorz <kpielorz@tdx.co.uk> To: Eric Feillant <Eric.Feillant@image-nouvelle.fr> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How compare and test file size ???? URGENT] Message-ID: <36594F76.3124EC@tdx.co.uk> References: <36594DA2.794BDF32@image-nouvelle.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric Feillant wrote: > 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 ...??? If you want to see if the files are 'the same' look at the MD5 command (man md5) - it generates 'signatures' for files... If the files are the same, the signatures will be the same... Regards, Karl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36594F76.3124EC>