Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This problem is to be solved using linux command line. Task 2. bash script named scrip The name of your bash script must be script1

This problem is to be solved using linux command line.image text in transcribed

image text in transcribedimage text in transcribed

Task 2. bash script named scrip The name of your bash script must be script1 and below is a description of what it should do when executed 1. All displayed messages must be exactly as shown here, with all details. All commands must follow the order described below 2. The script creates 5 text files named mv file1. mv file2. mv file3. my file4. and my file5 . 3. The content of my file1 are two lines I am my_filel and I love being my file1, the content of my file2 are two lines I am my file2 and I love being my_file2, , the content of myfile5 are two lines I am my file5 and I love being my_file5 4. Then the script displays the line my_file1: followed by the contents of the file, followed by the line of plus signs 5. Similarly for my file2... my file5. 6. Then contents of all the files my file1 .. my file5 are concatenated into a single file named JOINTFILE in the reverse order, i.e. first my_file5, then my file4 and so on 7. The script displays the line JOINTFILE: and then displays the contents of the file JOINTFILE 8. Then the script displays line current directory: and lists the contents of the current directory 9. Then it removes all the files my file1, my file2, myfile3, my file4, my file5, and JOINTFILE 10. Then the script displays the line current directory: and lists the contents of the current directory 11. At this point the script terminates 12. After the execution of the script, the current directory is in the same state as it was when the script started its execution

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is the growth rate of GDP per capita?

Answered: 1 week ago