#!/bin/sh -u # Sample Solution to Exercise #3 # -IAN! idallen@ncf.ca # # Student Name: Eileen Dover # Algonquin EMail Address: abcd0123 # Student Number: 123-456-789 # Course Number: DAT 2330 # Lab Section Number: 019 # Professor Name: Ian Allen # Assignment Name/Number/Date: Exercise #3 due September 17, 2003 # Comments: Sample Solution to Exercise #3 # Display one line of single-quoted text on the screen. # echo 'This is my first shell script.' # Copy the message-of-the-day from the system location to the current dir. # cp /etc/motd message_of_the_day.txt # Display a long listing (permissions, owner, date) of both the above files. # ls -l /etc/motd message_of_the_day.txt # Display a long listing (permissions, owner, date) of files in /bin that: # a) start with the letters 'r' or 'c', and # b) end in 'sh' # ls -l /bin/[rc]*sh