This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( echo -n 'SELECT tl_title,count(*) AS cnt FROM page,templatelinks WHERE tl_from=page_id AND page_namespace=6 and page_title IN ("' ; cat *.html | grep 'Datei:' | sed -r 's|</a>.*||' | sed -r 's|^.+>Datei:||' | grep -v '"' | sed 's| |_|g' | sed ':a;N;$!ba;s/\n/","/g' ; echo -n '") GROUP BY tl_title ORDER BY cnt DESC' ) | sql dewiki_p | head -50 |