ref: 7f2e1ae8748df1fed378180929bdb203aae7f64c 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] } '