Search Results

Search: Posts Made By: oggle
5,437
Posted By oggle
My solution - last three created files same size?
Thanks for this - final line is:

ls -l | tail -3 | awk 'BEGIN {sum=0 ; value=0} { sum+=$5 ; value=$5 } END { if ( sum/3 == value ) { print "equal" ; } else {print "not equal" } }'

on the...
5,437
Posted By oggle
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...
5,437
Posted By oggle
How to check if 3 files have same size in directory
I need to determine if any three files have the same file size in a specified directly?

I have got as far as listing the file sizes but where to go from here?

ls -al |sort -n -r +4 | awq...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy