Posted on

Linux LX0-103 Exam 1 samples – Question 65

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


Correct Answer: E
Section: GNU and Unix Commands

Leave a Reply

Your email address will not be published. Required fields are marked *