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?

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
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments