summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
14e5a61)
But don't update the flag list or flags themselves yet,
as I have no use for them currently.
Alternative to pull request #117.
-curl commons.wikimedia.org/wiki/Sovereign-state_flags |
- egrep -o "\"[^\"]+\"" |
- egrep Flag_of |
- egrep upload\\.wikimedia |
- sed -E 's!^.*(upload.*\svg)/.*$!\1!' |
- sed 's!thumb/!!' > flag_files.txt
+curl https://commons.wikimedia.org/wiki/Sovereign-state_flags |
+ egrep -o 'src="[^"]+/Flag_of_[^/"]+\.svg' |
+ sed -e 's#src="##' -e 's#thumb/##' > flag_files.txt
-for i in `cat flag_files.txt`
-do
- curl --remote-name $i
-done
+while read i ; do
+ curl --remote-name "$i"
+done < flag_files.txt