A.) This script, named build.sh gets as argument the path to a folder where to find a source file and builds the executable. B.) This script named script02.sh and take two arguments: a string to look for, and a path to the root folder to start the search from. The script should then explore recursively the folder hierarchy starting from the folder located at the path given as argument. At each folder encountered through the recursive search, the script should build a list of all text files in the folder and send this list, along with the target and the folder’s path, in a call to prog02 ( c program). The output of your script should have the following format: Recursive search for target starting at Search depth: Total number of folders: Total number of text files:
A.) This script, named build.sh gets as argument the path to a folder where to find a source file and builds the executable.
B.) This script named script02.sh and take two arguments: a string to look for, and a path to the root folder to start the search from. The script should then explore recursively the folder hierarchy starting from the folder located at the path given as argument. At each folder encountered through the recursive search, the script should build a list of all text files in the folder and send this list, along with the target and the folder’s path, in a call to prog02 ( c program).
The output of your script should have the following format:
Recursive search for target <target> starting at <path>
Search depth: <depth>
Total number of folders: <number>
Total number of text files: <number>
<output produced by the C program>
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images