mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
categorycount is no longer of any use
This commit is contained in:
parent
59cde15ad1
commit
93b09413a4
1 changed files with 0 additions and 30 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue