I have a very simple html file with a value inside. Value is 57 in this case.
<eta version="1.0"><value uri="/user/var/48/10391/0/0/12528" strValue="57" unit="%" decPlaces="0" scaleFactor="10" advTextOffset="0">572</value></eta>
What is an easy bash script way to extract and write in a variable? Is there a way to not even require a wget into a file as an intermediate step, so as not require to open and use a file where it is stored, but directly work with the wget?
To clarify, I could do a simple wget
, save to a file and check the file for the value or is there an even more enhanced way to do the wget
somewhere in RAM and not require an explicit file to be stored?
Thanks a million times, highly appreciated Norbert