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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.