Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please write script for number 4 for ubuntu terminal (unix-based) on the screen and the output of who will be redirected to a file called
please write script for number 4 for ubuntu terminal (unix-based) on the screen and the output of who will be redirected to a file called myfile2. Use the more command to check the contents of myfile2 3. Write a sed command that swaps the first and second words in each line in a file. 4. Write a shell script that takes a command-line argument and reports on whether it is directory, a file, or something else. 5. Write a shell script that accepts one or more file name as arguments and converts all of them to uppercase, provided they exist in the current directory. 6. Write a shell script that determines the period for which a specified user is working on the system. 7. Write a shell script that deletes all lines containing a specified word in one or more files supplied as arguments to it. 8. Write a shell script to perform the following string operations: To extract a sub-string from a given string (b) To find the length of a given string
please write script for number 4 for ubuntu terminal (unix-based)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started