Question: Write a bash Script Files saved to random somewhere in /roots/devops/ Given the different files stored in the /root/devops/ folder and its subfolders, write a

Write a bash Script

Files saved to random somewhere in /roots/devops/

Given the different files stored in the /root/devops/ folder and its subfolders, write a script that reconstructs the original text from their content and outputs it. You can assume that the all the files represent the disjointed chunks of the text, that they were all created at diff times and that they were not modified after creation. It is guaranteed that their is at least one file.

Example: Consider the following files on your computer:

/root/devops/a.txt

/root/devops/b

/root/devops/c/d

/root/devops/a.txt created on 2017-01-16 09:15, contains info "very important"

/root/devops/b created on 2017-01-17 11:11, contains info "text!"

/root/devops/c/d created on 2017-01-16 9:00, contains info "This is"

The output should be as follows: This is very important text!

execution time 4 seconds (sh)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!