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
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
./envir.sh SSH
Be sure to test this script several times to make sure it works.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
