von: Mike42
Re: OSMand Karten an der Konsole runterladen? - 30.06.15 16:50
Kleiner Einzeiler um alle Karten runterzuladen:
Um auf France zu beschränken:
Beim wgget must du noch ein g streichen. Ich frag mich echt was das Forum da hat und ob das nicht eine Sicherheitslücke ist …
Ich hoffe deine Version von grep kann das -P:
Code:
for map in $(curl http://download.osmand.net/rawindexes | grep -Po "(?<=HREF=\")[^\"]*"); do wgget "http://download.osmand.net${map}"; done
Um auf France zu beschränken:
Code:
for map in $(curl http://download.osmand.net/rawindexes | grep -Po "(?<=HREF=\")[^\"]*" | grep "France"); do wgget "http://download.osmand.net${map}"; done
Beim wgget must du noch ein g streichen. Ich frag mich echt was das Forum da hat und ob das nicht eine Sicherheitslücke ist …
Ich hoffe deine Version von grep kann das -P:
Zitat:
-P, --perl-regexp
Interpret PATTERN as a Perl regular expression. This is highly experimental and grep -P may warn of unimplemented features.
Interpret PATTERN as a Perl regular expression. This is highly experimental and grep -P may warn of unimplemented features.