-
Change Directory back to your work folder on the Bowen drive (
/{letter}/work/{COHORT}/{IDENT}/
) -
And then into
content/week01/shell-intro/north-pacific-gyre/
-
List the files in this directory
-
Make a new directory named
z_samples
-
Using wildcards, copy the files with a ‘Z’ in the name into
z_samples
-
Use ‘head’ to peek at the contents of the files you’ve copied into
z_samples
-
The files in
z_samples
contain a list of numbers. Use piped commands to list the 5 largest numbers they contain, combined -
Repeat 7., but direct the result into a file 5_largest_z_samples.txt
-
Write a FOR loop to print just the smallest number in each sample file
-
Advanced challenge: Write a FOR loop that would, in turn, print the 2nd, 5th, and 9th line of NENE01971Z.txt