I have the following string as an example:
ex. “Abandoned 16 1.10 2.62 3.50”
I would like to pipe this result to sed and remove all decimal numbers to leave me with the following:
ex. “Abandoned 16”
I was using the following command: sed ‘s/.//g’
which apparently doesn’t work.
Can someone let me know how to use the wildcard character with sed to remove anything matching “.“.
Thanks
You haven’t said what you want to do with the whitespace, but how about