CSC 275 - Operating Systems Practicum

Dr. R. M. Siegfried

Assignment #3 - Some New File Utilities on Compsci

Due Friday, September 24, 2021 (Section 1)

Due Monday, September 27, 2021 (Section 2)

We are going to continue practicing some file operations using Compsci. To get started:

  1. Use ed to create the fleas poem:
    Great fleas have little fleas
     upon their backs to bite 'em
    And little fleas have lesser fleas
     and so on ad infinitum.
    And the great fleas themselves, in turn,
     have greater fleas to go on;
    While these again have greater still,
     and great still and so on.
    
  2. Use wc to find out the size of the file.
  3. Use cp to create a copy of fleas called fleas2.
  4. Use mv to rename it morefleas.
  5. Re-edit morefleas so it reads:
    Great fleas have little fleas
     upon their backs to bite them
    And little fleas have lesser fleas
     and continuing ad infinitum.
    And the great fleas themselves in turn,
     have greater fleas to go on
    And all these  have greater still,
     and greater still and so on.
    
  6. Use grep on both fleas and morefleas.
  7. Compare them using cmp.
  8. Compare them using diff.
  9. Copy and paste your Compsci session into Notepad
  10. Save your Notepad file and submit hardcopy or on Moodle

[Back to the Assignment List]