BEGIN { n=split("S73isid S750vxpal.gridnode S75vxpal.StorageAgent S75vxsmfd S760vxpal.actionagent", list) for(i=1; i<=n; i++) { list[list[i]]=i delete list[i] } } $1 == running { print $5; next} $9 in list