Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Completely unsure on how to do this.Please help by using python or a linuix term

ID: 3823610 • Letter: C

Question

Completely unsure on how to do this.Please help by using python or a linuix terminal Thanks

envir.sh

The script should do the following:

1. Test that it has been given a command line argument. It should print a usage message and exit if no argument is given.

2. List all global variables that contain the string given in the command line argument.

Do this using a pipe calling env and then grep to filter the output of env for variables which contain the string given as an argument to the script.

Thus, if I wanted to see all variables that contained "SSH", I would run

Be sure to test this script several times to make sure it works.

Explanation / Answer

2. Try writting this in envir.sh file. It will run everytime.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote