Last Updated on November 28, 2021 by Admin 3
Which of the following commands changes all CR-LF line breaks in the text file userlist.txt
to Linux standard LF line breaks and stores the result in newlist.txt?
-
tr –d ‘\r’ < userlist.txt > newlist.txt
-
tr –c ‘\n\r’ ‘’ <newlist.txt> userlist.txt
-
tr ‘\r\n’ ‘’ <userlist.txt> newlist.txt
-
tr ‘\r’ ‘\n’ userlist.txt newlist.txt
-
tr –s ‘/^M/^J/’ userlist.txt newlist.txt