CIS 2279 Homework Assignment #10
Due Friday, Oct 09,
2009
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.
- Print the size of each file, its modification time and
its last access time to the screen.
- If a file has a size greater than 10k (10000) then
do the following:
- 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.
- Close both files
- 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: 05 Oct 2009 18:30