Created
April 24, 2021 13:24
Скрипт для получения курса валют на заданную даты из Центробанка
This file contains hidden or 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
DATE=02/03/2002 | |
CURR=USD | |
export LANG=ru_RU.CP1251 | |
curl 'http://www.cbr.ru/scripts/XML_daily.asp?date_req='$DATE -s | grep -Po $CURR'.*?Value>[^<]*' | sed -En -e 's/.*>([0-9,]*)/\1/gp' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment