mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

wikimissing (270B)


      1 #!/bin/bash
      2 
      3 # in wiki folder collection FOLDER, find missing links
      4 
      5 FOLDER="$1"
      6 
      7 cat $1*/* | sed 's/\[/\n\[/g;s/\]/\]\n/g' | grep -F '[' | cut -d'[' -f2 | cut -d']' -f1 | sort | grep -vxf <(ls $1*/* | rev | cut -d '/' -f1 | rev | sed 's/^/\^/g') - | uniq -c | sort -n
      8