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
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