Is it possible to write a shell script to extract the number of files added in a particular directory in a specific time duration (lets say last 2 hours) and then dtermine how many combinations have the same file size and based on that, do a file compare for the extracted files having same file size.
If someone has a similar script existing. Please send it to me.
thanks Homyar.
On Thu, 4 Sep 2003, Homyar Bhathena wrote:
Is it possible to write a shell script to extract the number of files added in a particular directory in a specific time duration (lets say
Use find for this.
last 2 hours) and then dtermine how many combinations have the same file size and based on that, do a file compare for the extracted files
I don't understand this "combinations with the same size" thing.
having same file size.
use cmp to compare the files.