Estou tentando obter uma string de alteração espacial de um site. Usei o comando:
wget -qO - www.factorio.com/download | grep '/get-download
a saída é:
wget -qO - www.factorio.com/download | grep '/get-download'
<p>If you are running a server, you can use <a href="https://factorio.com/get-download/stable/headless/linux64">this link</a> to always download the latest stable version.
<a href="/get-download/1.1.110/headless/linux64"
<a href="/get-download/1.1.110/demo/win64-manual"
<a href="/get-download/1.1.110/demo/win64"
<a href="/get-download/1.1.110/demo/osx"
<a href="/get-download/1.1.110/demo/linux64"
Preciso obter o 1.1.110 da linha:
<a href="/get-download/1.1.110/headless/linux64"
pode ser maior e menor, mas /get-download/XXXXX/headless/linux64
é fixo.