Shell Exercises

AAS 2020

Exercise 1

  • Use the man (mac, unix) or --help (windows) commands to figure out that the numbers returned by the wc command represent
  • Use the wc command to find the shortest file

Exercise 2

  • Make a file that contains a the sorted contents of lengths.txt 
  • View the new file that you just created

Exercise 3

  • Use 2 pipes and 3 commands to print to the screen the name of the file with the least number of lines and how many lines it has

Exercise 4

  • Run goo stats on all of the NENE*A.txt files

Exercise 5

  • Run goo stats on all of the NENE*B.txt files without editing your script

Shell Exercises

By abostroem

Shell Exercises

  • 1,202