Solved

Which of the Following Commands Will Change All CR-LF Pairs

Question 126

Multiple Choice

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
B) tr -c '\n\r' '' < newlist.txt > userlist.txt
C) tr -d '\r' < userlist.txt > newlist.txt
D) tr '\r' '\n' userlist.txt newlist.txt
E) tr -s '^M' '^J' userlist.txt newlist.txt

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents