Which of the following commands will reduce all consecutive spaces down to a single space?
A. tr '\s' ' ' < a.txt > b.txt
B. tr -c ' ' < a.txt > b.txt
C. tr -d ' ' < a.txt > b.txt
D. tr -r ' ' '\n' < a.txt > b.txt
E. tr -s ' ' < a.txt > b.txt
Which of the following commands will reduce all consecutive spaces down to a single space?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following commands will reduce all consecutive spaces down to a single space?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!