ExamGecko
Question list
Search
Search

Question 164 - 101-500 discussion

Report
Export

Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

A.
tr '\r\n' '' < userlist.txt > newlist.txt
Answers
A.
tr '\r\n' '' < userlist.txt > newlist.txt
B.
tr -c '\n\r' '' < newlist.txt > userlist.txt
Answers
B.
tr -c '\n\r' '' < newlist.txt > userlist.txt
C.
tr -d '\r' < userlist.txt > newlist.txt
Answers
C.
tr -d '\r' < userlist.txt > newlist.txt
D.
tr '\r' '\n' userlist.txt newlist.txt
Answers
D.
tr '\r' '\n' userlist.txt newlist.txt
E.
tr -s '^M' '^J' userlist.txt newlist.txt
Answers
E.
tr -s '^M' '^J' userlist.txt newlist.txt
Suggested answer: C
asked 18/09/2024
Pilocz Pi
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first