1. Write a script that asks for the user’s age. If it is equal to or higher than
18, print a message saying that this user is allowed to drive any vehicle.
If the user’s age is below 16, print a message telling the user how many
years he or she has to wait before legally being allowed to drive.
2. Use an if/then/else construct that prints information about the current
month. The script should print the number of days in this month, and
give information about leap year if the current month is February.
3. Check whether the given number is Armstrong / prime / perfect or not.
4. Accepts any number of arguments and prints them in the reverse order.
5. Write a script that does the following:
a. display the name of the script being executed.
b. Display the first, third and tenth argument given to the script.
c. Display the total number of arguments passed to the script.
d. If there were more than three positional parameters, use shift
to move all the values 3 places to the left.
e. Print all the values of the remaining arguments.
f. Print the number of arguments .
Note: test with zero, one, three and over ten arguments.
6. Design a menu driven program for rename, remove and copy commands.
7. Check whether the given user has logged in or not.
8. To check file permissions (read/write/execute/exit) and file types (file /
directory /size zero)
9. Write a program to get the input from the user whether to read the unread
system information or whether to read the already read system information
and display all the system information page by page. (using news
command- The news command allows a user to read news items
published by the system administrator).
10. write a program to get two user inputs (filename and whether to download
or upload the file.
11. write a program to get two user inputs – the file name and the column
no(n). using cat command, list the nth column from mentioned file.
12. Simulate find command.
13. Remove duplicates words from list / file.
14. To process Electricity Billing system using awk command.
15. To prepare salary report for ABC company using awk command. |