Quote:
Originally Posted by zaxxon
Not depending on the tab, but any kind of space/blank/tab:
Code:
sed '/^Message Text/ { s/[[:space:]]\{2,\}/ /g }'
Had also problems testing with "+".
|
Thanks a million zaxxon, your code works as charm.
These are some more options, I got from others. May be helpful to you or others.
Code:
awk -F'Message text:' '{ gsub(/ +/, " ", $2); print $1 "Message text:" $2; }'