SyntaxFix
Write A Post
Hire A Developer
Questions
If your lines are exactly the way you depict them(no leading or embedded spaces), the following should serve as well
awk '{$1=$1;print}' file.txt