I have already read many many pages here on stackoverflow, but nothing does work on my szenario.
I want to get the last matching (or all) URLs containing "cedock" from this website: "https://4pda.ru/forum/index.php?showtopic=973246&st=4040#Spoil-97613600-1"
When I save the file and then do a search in my file editor it works fine, but none of these commands did work for me to get the urls or filter anything in this file:
curl -k -s "https://4pda.ru/forum/index.php?showtopic=973246&st=4040#Spoil-97613600-1" | awk -F'SRC="|"' '/SRC/ && /'"cedock"'/ {print $4}'
curl -k -s "https://4pda.ru/forum/index.php?showtopic=973246&st=4040#Spoil-97613600-1" | grep -o 'FOTA-OTA/V8-R851T02-LF1V342.014883.zip.*zip</a><br /></div></div><br'
grep "<a href=" 4pda.txt |sed "s/<a href/\\n<a href/g" |sed 's/\"/\"><\/a>\n/2' |grep href |sort |uniq
Is there something broke with the website itself? As I am using similar commands on other websites and there it is working.
Desired output is the latest download url from cedock, so for example right now: http://na-update.cedock.com/apps/resource2/V8R851T02/V8-R851T02-LF1V351/FOTA-OTA/V8-R851T02-LF1V351.015103.zip