Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

Identify ways to increase your selfesteem.

Answered: 1 week ago