CSE 202: Computer Science II, Winter 2018
Lab 4
  1. Create a program that reads all dates (where each date is a character sequence of the form "MM/DD/YYYY") from standard input and displays the date that represents the earliest date.

    Solution

  2. Create a program that takes two command-line arguments. This program will repeat it's standard input but with all occurences of the character sequence specified by the first argument replaced with the character sequence specified by the second argument.

    If your program is named "replace", then the command: printf "The blue car passed the blue house.\n" | ./replace "blue" "red"

    will result in the following output:

    The red car passed the red house.

    Solution