Update
This commit is contained in:
parent
0ea738f524
commit
181057e0e3
6 changed files with 95 additions and 18 deletions
14
most_wanted.sh
Executable file
14
most_wanted.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue