summaryrefslogtreecommitdiffstats
path: root/bin/checkMissingLink
blob: f1ea0df54d8a39d440ff50064f38b68bc4cad6ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh 

file=$1
id=$(echo "$file" | sed 's/.*\(.\{11\}\)\.ogg/\1/')

#Wattie_Green_-_Dark_eyes-gdlFy3dRVck.ogg

if [ $id = '' ]; then
	echo 'no id'
	exit 23
fi

if ! grep -q -- "$id#" links; then 
	echo $file
fi