You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
287 B
Bash

#!/bin/sh
cat ./*.md | sed -n 's/.*\[.*\](\([^\)\(]*\)).*/\1/p' | sort | uniq -c | sort -nr | sed -n "s/.* \([^ ]\)/\1/p" > tmp.txt
rm tmp2.txt
touch tmp2.txt
while read -r line; do
if ! [ -f $line ]; then
echo "$line" >> tmp2.txt
fi
done < tmp.txt
cat tmp2.txt | head -n 20