1 / 6

CS 451 / 558

CS 451 / 558. Week 2, Tues. In class exercises – Unix 1. Create a directory Download the IMDB file into that directory Open the file in an editor What’s the 10 th entry? What’s the last entry? 10 th from the bottom? Name a movie – is it in this file? Add a movie to the end of the file.

hayden
Download Presentation

CS 451 / 558

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 451 / 558 Week 2, Tues

  2. In class exercises – Unix 1 • Create a directory • Download the IMDB file into that directory • Open the file in an editor • What’s the 10th entry? • What’s the last entry? • 10th from the bottom? • Name a movie – is it in this file? • Add a movie to the end of the file

  3. In class exercises – Unix 2 • Close the file (in file editor). • From the command line: • What’s the 20th entry? • What’s the last entry? • 10th from the bottom? • Name another movie – is it in this file?

  4. In class exercises – Unix 3 • Rename the movie file • Make a copy of the renamed file, back to the original name • Add a new movie to the end of the movie file (the one with the original name) • Remove the copy

  5. In class exercises – Unix 4 • How many words in /usr/share/dict/words? • Print a list of words that contain ‘nj’ • Write that list to a file (do this in a new directory)

  6. In class exercises – Unix 5 • Create a new directory • Download sequences.fa • Look at the format of the file • How many sequences are there? • Download .gz version • Unzip it • Is it the same as the other file?

More Related