1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh file=$1 id=$(echo "$file" | sed 's/.*\(.\{11\}\)\.ogg/\1/') if [ $id = '' ]; then echo 'no id' exit 23 fi if ! grep -q -- "$id#" links; then echo $file fi