Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how compare 2 file size in bash

I=`wc -c $i | cut -d' ' -f1`
J=`wc -c $j | cut -d' ' -f1`
if [ $I -eq $J ]
then
      echo $i $j >> $1.pares
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #compare #file #size #bash
ADD COMMENT
Topic
Name
8+8 =