01-12-2012, 01:21 PM
BCA V UNIX PROGRAMMING
1UNIX PROGRAMMING.pdf (Size: 148.77 KB / Downloads: 225)
List of Unix Programs
1. Write a Shell Script which creates the following menu and prompts for choice from user and runs the chosen command.
a. Today's date
b. Process of user
c. List of files
d. Quit to UNIX
2. Write a Shell Script which will redirect the output of the date command without the time into a file.
3. Write a Shell Script that accepts a filename as a command line argument and finds out if its a regular file or a directory. If its a regular file, then performs various tests to see if it is readable, writeable, executable etc.
4. Write a Shell Script that computes the factorial of a given number
5. Write a Shell Script that works like a calendar reminding the user of certain things depending on the day of the week.
6. Write a Shell Script which takes a command line argument of Kms and by default converts that number into meters. Also provide options to convert km to dm and km to cm.
7. Write a Shell Script that performs a count-down either from 10 (default) or from the value that is entered by the user.
8. If a number is input through the keyboard, WASS to calculate sum of its digits.
9. Write a Shell Script using for loop, which displays the message "Welcome to the UNIX System"
10. WAP to calculate and print the first m Fibonacci numbers.
11. WASS to compute the GCD and LCM of two numbers.
12. Two numbers are entered through the keyboard. WAP to find the value of one number raised to the power of another.
13. WAP to generate all combinations of 1, 2 and 3 using for loop.
14. WASS that repeatedly asks the user repeatedly for the “Name of the Institution” until the user gives the correct answer.
15. Write a Shell Script that changes the extension of a group of files from txt to doc