Answered step by step
Verified Expert Solution
Question
1 Approved Answer
8 Create a simple shell script which will use environment variables to: Read the TRGT _ EXT environment variablelto determine what file extension we are
Create a simple shell script which will use environment variables to:
Read the TRGTEXT environment variablelto determine what file extension we are looking for for example, png txt pdf etc.
When testing, set this environment variable up manually by physically typing commands into the command line before calling the script.
Set a new shell variable to the list of files in the current directory that have those extensions: use Is for this.
In one single final echo statement, and then provide the following information:
The directory you are searching in current working directory
a list of the files you found in step Don't rerun the Is command, you should use the result saved in your environment variable from step
It's okay if the output looks wacky if there are no matching files.
Please help if you can, thanks
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