Which of the following commands will change all CR-LF pairs in an imported text file

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?

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-s /AM’ /AJ’ userlist.txt newlist.txt

B.
tr -d V < userlist.txt > newlisttxt

C.
tr -c ‘nr’ ” < newlist.txt > userlist.txt

D.
tr ‘rn'” < userlist.txt > newlisttxt

E.
tr V V userlist.txt newlist.txt



Leave a Reply 1

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


Saravanabavanantharajah

Saravanabavanantharajah

The answer is wrong. it should be tr -d “\r” newlist