60 likes | 227 Views
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.
E N D
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 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
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?
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
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)
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?