Question: Assume you have a file called 'stuff.dat'. What command(s) would you use to remove all duplicate lines from the file? You have a Windows formated

  1. Assume you have a file called 'stuff.dat'. What command(s) would you use to remove all duplicate lines from the file?
  2. You have a Windows formated file called 'notes.txt'. In Windows, newlines are marked with both (linefeed, LF) and (carriage return, CR), while in Unix/Linux/Mac OS X newlines are marked with just (and in older Mac OS versions, newlines are marked with just ). Give the tr command to remove all the characters from the file 'notes.txt'.
  3. Give the tr command to replace all tabs in a file called 'stuff.dat' with spaces.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To remove all duplicate lines from a file called stuffdat on a UnixLinux system you can use the sort ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!