Assignment 1

Due: Saturday, September 27, 2003 2PM

Overview

Before you begin

Questions

    Each of these questions should be expressible as a single command or pipline of commnads. You should not need multiple lines or semicolons for any question. Write commands or pipelines to do the following:

  1. List all directories from 2002.
  2. List all files from August.
  3. List all files named daily between (and including) August 1 and August 9.
  4. List all directories before August 10.
  5. List all files named hourly on the 1st or 15th of all months.
  6. Using ls and head, list the first 10 days of the year.

  7. Using ls, head and tail, list the 100th day of the year.
  8. List all directories (as in question 1), but display in the format year-month-day instead of year/month/day
  9. Display the concatenation of the contents of all files named daily
  10. Concatenate all files named daily together and place the results into a file called all.daily
  11. Concatenate all files named hourly together and place the results into a file called all.hourly

    These questions make use of all.daily and all.hourly from the previous two questions:

  12. Display only the date and mean temperature in all.daily.
  13. Display lowest mean temperature of the year and the date it occured.
  14. Display the median mean temperature (median means the middle date in the year, you can hardcode that number) and the date it occured.
  15. Display the lowest humidity of the year and the date it occured.
  16. Display a list of all of the weather conditions (last field in hourly), each listed once.
  17. Display the number of different weather conditions that exist in the data.
  18. Display each weather condition and the number of hours that had that condition.
  19. Display each weather condition and the number of days that had that condition.

Turining in the assignment

When you have finished, submit using the homework submission system.