"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "repeats/repeats.in" between
littleutils-1.2.4.tar.lz and littleutils-1.2.5.tar.lz

About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).

repeats.in  (littleutils-1.2.4.tar.lz):repeats.in  (littleutils-1.2.5.tar.lz)
skipping to change at line 113 skipping to change at line 113
sort $TMPFILE1 | REPHARD -p | sort -t ' ' -k4n,4n -k3n,3n -k2n,2n -k1,1 | REPNODE > $TMPFILE2 sort $TMPFILE1 | REPHARD -p | sort -t ' ' -k4n,4n -k3n,3n -k2n,2n -k1,1 | REPNODE > $TMPFILE2
if [ "$VERBOSE" = 'y' ]; then if [ "$VERBOSE" = 'y' ]; then
echo "repeats stage 2: num files excluding hardlinks = $(wc -l $TMPFILE2)" | sed -e "s: ${TMPFILE2}::" 1>&2 echo "repeats stage 2: num files excluding hardlinks = $(wc -l $TMPFILE2)" | sed -e "s: ${TMPFILE2}::" 1>&2
fi fi
else else
mv $TMPFILE1 $TMPFILE2 mv $TMPFILE1 $TMPFILE2
fi fi
# search for duplicates based on a partial filehash # search for duplicates based on a partial filehash
TMPFILE3=$(tempname repeats_$$_3) || exit 99 TMPFILE3=$(tempname repeats_$$_3) || exit 99
sort $TMPFILE2 | filehash -v -s -$ALGORITHM -p -n $MIDSIZE | sort -t ' ' -k2n,2n -k3,3 -k1,1 | REPHASH > $TMPFILE3 sort $TMPFILE2 | filehash -bpsv -$ALGORITHM -n $MIDSIZE | sort -t ' ' -k2n,2n -k3,3 -k1,1 | REPHASH > $TMPFILE3
if [ "$VERBOSE" = 'y' ]; then if [ "$VERBOSE" = 'y' ]; then
echo "repeats stage 3: num file pairs with matching digest after $MIDSIZE byte s = $(wc -l $TMPFILE3)" | sed -e "s: ${TMPFILE3}::" 1>&2 echo "repeats stage 3: num file pairs with matching digest after $MIDSIZE byte s = $(wc -l $TMPFILE3)" | sed -e "s: ${TMPFILE3}::" 1>&2
fi fi
# search for duplicates based on a complete filehash # search for duplicates based on a complete filehash
TMPFILE4=$(tempname repeats_$$_4) || exit 99 TMPFILE4=$(tempname repeats_$$_4) || exit 99
sed -e 's/\t/\n/' $TMPFILE3 | sort -u | filehash -v -s -$ALGORITHM -p | sort -t ' ' -k2n,2n -k3,3 -k1,1 | REPHASH > $TMPFILE4 sed -e 's/\t/\n/' $TMPFILE3 | sort -u | filehash -bspv -$ALGORITHM | sort -t ' ' -k2n,2n -k3,3 -k1,1 | REPHASH > $TMPFILE4
if [ "$VERBOSE" = 'y' ]; then if [ "$VERBOSE" = 'y' ]; then
echo "repeats stage 4: num file pairs with matching complete digest = $(wc -l $TMPFILE4)" | sed -e "s: ${TMPFILE4}::" 1>&2 echo "repeats stage 4: num file pairs with matching complete digest = $(wc -l $TMPFILE4)" | sed -e "s: ${TMPFILE4}::" 1>&2
fi fi
# do final paranoia check if requested # do final paranoia check if requested
if [ "$PARANOID" = 'n' ]; then if [ "$PARANOID" = 'n' ]; then
# make it final: print results # make it final: print results
sort $TMPFILE4 sort $TMPFILE4
else else
TMPFILE5=$(tempname repeats_$$_5) || exit 99 TMPFILE5=$(tempname repeats_$$_5) || exit 99
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)