Question: ITCS323: Operating System:s Lab #3: Shell scripts Due: NOV 27th, 2017 The objective of this assignment is to study and experiment with writing scripts. Write

ITCS323: Operating System:s Lab #3: Shell scripts Due: NOV 27th, 2017 The objective of this assignment is to study and experiment with writing scripts. Write a shell script that does the following: 1) (1 mark) Read user name and display it in a welcome message. 2) Display today's date 3) (1 mark) Display the processes that are running and their number (how many are they?)(2 marks) 4) Define four variables having the values "Department", "College", "University", and "Bahrain". (2 marks) 5) Save the values of the previous variables in a file named "kingdom.txt". 6) Display the number of lines in the file "kingdom.txt" (How many lines in the file). 7) Display the contents of the file "kingdom.txt" sorted alphabetically 8) Save the sorted contents of the file "kingdom.tx" into another file called "Sorted (1 mark) (1 mark) 1 mark kingdom.tx". 9) Display the current working directory 10) Delete the file "kingdom.txt" 11) Display your name again in a goodbye message. (1 mark) (1 mark) 1 mark mark) Notes: 1. Add a meaningful message to each step. (1 mark)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
