SED - Change - Change multiple spaces to a single space

sed 's/ */ /g' infile.txt

Example

ip addr | sed 's/  */ /g'