ref: 4768009eb3dcc311510ac107b3d6b3cb7d863de1 dir: /bin/fpl/
#!/bin/rc ps -n | awk ' / play$/ { g[++i] = $3 } { for(n=1; n<=i; n++) if(g[n] == $3) p[n] = $2 } END { for(n=1; n<=i; n++) print p[n] } '