I'm trying to get a spacific changing string form a site.
I used the commend:
wget -qO - www.factorio.com/download | grep '/get-download
the output is:
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"
I need to get the 1.1.110 from the line:
<a href="/get-download/1.1.110/headless/linux64"
can be longer and can be shorter. but the /get-download/XXXXX/headless/linux64
is fixed.