shithub: rc

ref: 3d98f22b01f61b93c3bcc6ffe3f0eb0fa2d01f98
dir: /play/fpl/

View raw version
#!/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] }
'