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?
Select an option, then click Submit answer.
-
○
tr ‘\r\n’ ‘’ < userlist.txt > newlist.txt
-
○
tr –c ‘\n\r’ ‘’ < newlist.txt > userlist.txt
-
○
tr –d ‘\r’ < userlist.txt > newlist.txt
-
○
tr ‘\r’ ‘\n’ userlist.txt newlist.txt
-
○
tr –s ‘^M’ ‘^J’ userlist.txt newlist.txt