iomenu-ps - iomenu - interactive terminal-based selection menu
(HTM) git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
iomenu-ps (154B)
---
1 #!/bin/sh -e
2 # process list picker with iomenu
3
4 ps='ps -o pid,user,stat,args'
5
6 {
7 printf '#'
8 ps "$@"
9 } | iomenu -'#' | sed -r 's/[^ ]* *([0-9]*).*/\1/'