Question: Please use Linux system to sove the following question: A) Write a single command that will return every username in the system in alphabetical order.
Please use Linux system to sove the following question:
A) Write a single command that will return every username in the system in alphabetical order. [You may chain commands using piping and redirects]
B) Write a shell script that only prints the odd numbered lines of each file in the current directory, except for the script itself. The output should be filename: line for each odd numbered line. You do not need to print line numbers.
B*)Bonus: write the script in a way that it works no matter the filename given to the script.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
