User:Jimregan: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
mNo edit summary |
m (more) |
||
Line 14: | Line 14: | ||
;[[User:Jimregan/el.wikipedia]] | ;[[User:Jimregan/el.wikipedia]] | ||
;[[User:Jimregan/es.wikipedia]] | ;[[User:Jimregan/es.wikipedia]] | ||
;[[User:Jimregan/ga.wikipedia]] | |||
;[[User:Jimregan/fr.wikipedia]] | |||
;[[User:Jimregan/hr.wikipedia]] | |||
;[[User:Jimregan/hu.wikipedia]] |
Revision as of 15:11, 22 April 2011
#!/bin/bash for lang in $@ do wget http://downloads.dbpedia.org/3.6/${lang}/infobox_properties_${lang}.nq.bz2 bzgrep 'http://dbpedia.org/property/wikiPageUsesTemplate' infobox_properties_${lang}.nq.bz2 |awk '{print $3}'|sort -n| uniq -c|sort -nr > ${lang}-templates cat ${lang}-templates |awk '$1>49{print " " $0}'|sed -e "s/<http:\/\/dbpedia.org\/resource\/Template:/[[Mapping_${lang}:/"|sed -e 's/>/]]/' > ${lang}-mappings done