The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-16-2005
oggle oggle is offline
Registered User
  
 

Join Date: Feb 2005
Location: Bedford, UK
Posts: 3
How to check if any three files are the same size in a directory

If I am not mistaken this assumes you know the names of the three file to compare.

What I need is a script that assumes you do not know the names "x1" "x2" "x3" at the start.

Say you have a directory of 1000 files - the question is do any three (or more) of these 1000 files have the same size.

or another way to satisfy my needs would be a script:

Do the last three files created have the same size?

Thanks.