08-01-2013, 03:23 PM
CSE207 HomeWork
1HomeWork.doc (Size: 35.5 KB / Downloads: 22)
1. Linux scripts do not need support comparison symbols like (<,>, etc.) What is the alternative to do this?
2. Write a shell script to copy only ordinary files of a directory to another directory. If it encounters other than ordinary files, it should give appropriate message. It should also copy the files to its subdirectories. Illustrate the use of /boot and /tmp directory
3. Write a shell script having the same name as your roll no. It should input the source and destination directory names and copy only the files from source to destination. If it encounters subdirectory, it should not copy and provide appropriate message for the same.
4. Write a program to list the contents of a directory and its subdirectories.
5. Write a shell script to perform the following operations for the directory inputted by user at run time. The menu options are:
a. Display the contents of the directory
b. Copy the files of the directory in the backup directory
c. Delete the files with the name starting as junk from the directory
d. Exit