CIS 2279 Homework Assignment #10
Due Monday, Nov 10,
2008
All files created must be saved in your class directory
/mnt/homes/CLASSES/CIS2279/<username>
- Create a perl script named lab10.pl in your user directory. The
script that has the following features:
- Change the current directory to
/mnt/homes/CLASSES/CIS2279/LAB10.
- Reads the contents of the directory
/mnt/homes/CLASSES/CIS2279/LAB10.
- If a file has a name that begins with "metar" and
ends with ".dat" then do the following:
- Print the size of the file, its modification time and
its last access time to the screen.
- Open the file for reading.
- Print any lines from the file for the station
"RUT" to a file named lab10.temp in your home
directory.
- When completed with reading the files in the LAB10
directory, do the following:
- Rename lab10.temp as lab10.done in your
home directory.
Solution
last updated: 04 Nov 2008 22:04