mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-17 09:25:32 +00:00
14 lines
288 B
Plaintext
14 lines
288 B
Plaintext
|
# percol
|
||
|
#
|
||
|
# adds flavor of interactive filtering to the traditional pipe concept of UNIX shell
|
||
|
|
||
|
# to install percol
|
||
|
sudo pip install percol
|
||
|
|
||
|
# interactive pgrep version
|
||
|
ps aux | percol | awk '{ print $2 }'
|
||
|
|
||
|
# interactive pkill version
|
||
|
ps aux | percol | awk '{ print $2 }' | xargs kill
|
||
|
|