Say I have a string as
name = xyz
here after name there is a tab and after '=' there are random number of spaces.
I need an output as
name=xyz
So how can I remove both tabs and random number of spaces from the above mentioned string using sed or awk and tcl regsub function. Help is highly appreciated. Thanks.
I tried
[regsub -all { +} $str ""]
This removes the random number of spaces from $str
but tabs are still present.