We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Text Processing
- 'Tr' Command #3
'Tr' Command #3
'Tr' Command #3
In a given fragment of text, replace all sequences of multiple spaces with just one space.
Input Format
A block of ASCII text.
Output Format
Replace all sequences of multiple spaces with just one space.
Sample Input
He llo
Wor ld
how are you
Sample Output
He llo
Wor ld
how are you