Lab Exercises


Beginning | Previous
  1. Write a Fahrenheit/Celsius conversion program to read in a number and a 'c', 'C', 'f' or an 'F' and convert the number to a temperature from C to F or F to C, depending on what was passed in.

  2. Write a program that reads the "/etc/passwd" file, parses it and prints out all the usernames to the screen.

  3. Write a program that reads your ".cshrc" file and separates all the "setenv" commands into key/values pairs of a hash and then write them to a file.

  4. Write a program that removes files (and checks for errors) in the current directory based on a regex passed in on the command line.
Beginning | Previous
Last Modified: $Date: 1997/05/09 06:58:41 $