From d62c8619427929e7d1b140a76481b6a9684cf044 Mon Sep 17 00:00:00 2001 From: Tad Date: Wed, 25 Jan 2017 06:57:03 -0500 Subject: [PATCH] Output the amount of blobs removed --- Scripts/LAOS-14.1_Deblob.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripts/LAOS-14.1_Deblob.sh b/Scripts/LAOS-14.1_Deblob.sh index 997ac2b7..dcdfb86f 100644 --- a/Scripts/LAOS-14.1_Deblob.sh +++ b/Scripts/LAOS-14.1_Deblob.sh @@ -4,6 +4,7 @@ deblob() { blobList=$2; cd $base$dir; #Enter the target directory echo "[DEBLOBBING] "$dir; #Inform the user + initialSize="$(wc -l < $blobList)"; #Record the initial size cp $blobList $blobList".bak"; #Make a backup # #START OF REMOVAL @@ -28,6 +29,9 @@ deblob() { #END OF REMOVAL # mv $blobList".new" $blobList; #Move the new list into place + finalSize="$(wc -l < $blobList)"; #Record the final size + delta=$(($initialSize - $finalSize)); #Calculate the difference in size + echo "Removed "$delta" blobs from "$blobList; #Inform the user source setup-makefiles.sh; #Update the make files }