From 93b09413a41d07b804ec281030a084ad83ce3f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 31 Oct 2013 13:08:39 +0100 Subject: [PATCH] categorycount is no longer of any use --- tools/categorycount | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 tools/categorycount diff --git a/tools/categorycount b/tools/categorycount deleted file mode 100755 index 02e3d60a..00000000 --- a/tools/categorycount +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Sorts categories by number of apps in them, discards disabled apps - -declare -A count - -for file in metadata/*.txt -do - while read line - do - [[ "$line" == "Disabled:"* ]] && break - if [[ "$line" == "Category:"* ]] - then - while IFS=';' read -ra categ - do - count[$categ]=$(( ${count[$categ]} + 1 )) || count[$categ]=1 - done <<< "${line:9}" - break - fi - done < $file -done - -output="" - -for category in "${!count[@]}" -do - output+="${count[$category]}_$category\n" -done - -echo -en "$output" | column -t -s '_' | sort -n