Answered step by step
Verified Expert Solution
Link Copied!

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

8 Create a simple shell script which will use environment variables to:
Read the TRGT_EXT 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 2. Don't re-run the Is command, you should use the result saved in your environment variable from step 2.
It's okay if the output looks wacky if there are no matching files.
Please help if you can, thanks
image text in transcribed

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

How will it be used?

Answered: 1 week ago

Question

=+How might these stem from country and regional cultures?

Answered: 1 week ago