fetch('https://api.weather.yandex.ru/v1/forecast?lang=ru'+ '&lat=' + this.props.city.lat + '&lon=' + this.props.city.lon, {
method: 'GET',
headers: (new Headers({
'X-Yandex-API-Key': API_KEY
}))
}).then(resp => resp.json()).then(res => {
console.log(res)
});
sed -i '/^\[\/text0\]$/,/^\[/ s/^\* =/textN = textN\n\* =/' file.ini
[/text0]
text1 = text2
textN = textN
* =
[/text3]
text4 = text5
* =