Unix Programming Lab
Unix Programming Lab
24. A shell script receives even number of filenames. Suppose four filenames are supplied, then the first file should get copied into second file, the third file should get copied into fourth and so on. If odd number of filenames is supplied then no copying should take place and an error message should be displayed. 25. WASS to identify all zero-byte files in the current directory and delete them. Before proceeding with deletion, the shell script should get a conformation from the user. 26. WASS to compute the GCD and LCM of two numbers. 27. Two numbers are entered through the keyboard. WAP to find the value of one number raised to the power of another. 28. WASS that prompts the user for the password. The user has maximum of 3 attempts. If the user enters the correct password, the message Correct Password is displayed else the message Wrong Password. 29. WASS that repeatedly asks the user repeatedly for the Name of the Institution until the user gives the correct answer. 30. WAP to generate all combinations of 1, 2 and 3 using for loop.
Examination Scheme:
Components Weightage (%) CT1 (Lab) 5 CT2 (Lab) 5 PR 15 Attd 5 EE 70