X-Git-Url: https://git.wikimedia.ca/?a=blobdiff_plain;f=README;h=ca371dca55e57823b9fb61ca6608289c4649de8c;hb=2f3682a6a85c816ba37855f0633478869334c529;hp=6db096e97ae520e503ddce0889fc12ad558ffb21;hpb=86faa15d147318dbfdabdaf1d04efb8a59ff7051;p=eccc_to_commons.git diff --git a/README b/README index 6db096e..ca371dc 100644 --- a/README +++ b/README @@ -10,6 +10,7 @@ distribution. In addition to coreutils, prerequisites are: - Bash 4+ - Curl - Xmlstarlet +- Jq This repository is sponsored by Environment and Climate change Canada and Wikimedia Canada. @@ -67,7 +68,7 @@ Here are a few examples to inspire you: Keep only monthly data: $ cat downloads_all | grep -B1 -A1 --no-group-separator \ - -E '^output = ".*/monthly/[0-9]*.xml"$' > downloads_monthly + -E '^output = ".*/monthly/[A-Z0-9]{7}.xml"$' > downloads_monthly Remove all downloads before (restart interrupted download): $ sed -n '/https:\/\/climate.weather.gc.ca\/climate_data\/bulk_data_e.html?format=xml&timeframe=3&stationID=2606/,$p' \