shithub: rc

ref: c15ee6ec46cb3d85112715f9dffc424f2810562c
dir: /bin/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] }
'