Hi,
I have a lot of string texts which normally should only contain a single float so that I can put this float into a variable.
This stings are generated by a grep command out of a large html file.
sometimes a value that I want to grep is found more than once, so that the resulting sting contains the value more than once, too.
Example:
"14.5 14.5"
So my idea was to use the sed command to delete everything after the first found " ". But I am not able to set the parameters for that sed command right.
I hope someone can help me with that...
Thanks,
Stefan
---------- Post updated at 01:14 PM ---------- Previous update was at 01:03 PM ----------
never mind. The Secound after I wrote my question I found the Answer myself:
sed 's/\s.$//'