mybin

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

wikistats (336B)


      1 #!/bin/bash
      2 
      3 # in wiki folder collection FOLDER, find missing links
      4 
      5 FOLDER="$1"
      6 
      7 for a in $FOLDER*
      8 do
      9   B=$(echo $a | rev | cut -d '/' -f1 | rev)
     10   ls "$a" | wc -l | sed "s/\$/ pages in $B/"
     11 done
     12 ls $FOLDER*/* | wc -l | sed 's/$/ pages total/' | sed 's/^/>> /'
     13 wikimissing $FOLDER | wc -l | sed 's/$/ missing pages/' | sed 's/^/>> /'
     14