Here is an example to prove the same:
ps -u $LOGNAME | tr -s " " : | cut -d: -f
The above script line can be used to extract a column from the output of a ps command for a particular user ($LOGNAME).
Blog Your Face on technology, history, reviews, magic the gathering and getting things done
No comments:
Post a Comment