(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
################################################################################ | |
## Similar to run: ps aux | grep "RegExp" ## | |
## Script that receives a list o keywords and search then in "ps aux" command ## | |
## and returns ps's header and processes that where found with keywords. ## | |
## Accepts grep options, like '-c' to count number of matched processes. ## | |
################################################################################ | |
options='' |
#!/bin/bash | |
# Get current swap usage for all running processes | |
# Erik Ljungstrom 27/05/2011 | |
# | |
## Adapted by Jhonatan Piffer Siqueira and Eduardo Lemons Francisco (eddy85br). | |
OVERALL=0 | |
PROGLIST=$(ps axw -o pid,args --no-headers) | |
while read PID ARGS; do |