tput setaf color, where color is a number from 0 to 7 (try them out to see what colors they...
tput setaf color, where color is a number from 0 to 7 (try them out to see what colors they represent).
To return the terminal to its original color, you can use tput sgr0.
Using what we know about shell scripts, write a script that accepts a part of a process name as the first argument (like pgrep), which prints out the PID of all matching processes in blue, which is color code 4. Then print out the number of processes that matched in normal text.
If the user doesn’t pass exactly one argument to the script, it should print out the following usage message and exit with a return code of 1:
Usage: scriptname pname
Displays all process IDs with image names matching pname.
11 years ago
999999.99
Answer(0)
Bids(0)
other Questions(10)
- ACC 548 Final Exam Answers
- Bio lap
- Final Paper Three Perfect Tutorial-ACC/205
- ECON 545 FINAL EXAM
- m2 assignment 1
- System Evaluation Paper
- pitch letter
- Briefly describe each of the nine properties and discuss how things like a virus, prion, and viroid can reproduce, but are not considered to be alive. Address the question: how can things like these that are not considered to be alive “evolve”?
- Why do cities want to host a party convention?
- CJ Part 1 Law Enforcement: