CIS 2279 Homework Assignment #10
Due Friday, Oct 07,
2011
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/stuff.
- Reads the contents of the directory
/mnt/homes/CLASSES/CIS2279/LAB10/stuff.
- Print the size of each file, its modification time and
its last access time to the screen.
- Print the file name to the screen and to a file in your
class directory named "lab10.temp" (along with some descriptive text) if:
- the file has a size greater than 10k (10000)
- the file name ends with the letters "gz"
- the file's UID is "3005"
- Close the output file.
- When completed with reading the files in the LAB10
directory, do the following:
- Rename lab10.temp as lab10.output in your
class directory.
Solution
last updated: 05 Oct 2011 19:17