The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-21-2007
Klashxx's Avatar
Klashxx Klashxx is offline
HP-UX/Linux/Oracle
 

Join Date: Feb 2006
Location: Almerķa, Spain
Posts: 383
U can try (in ksh):
Code:
awk -F\: '/^ram?*/ {print $1}' /etc/passwd|xargs -i ksh -c 'ps --o user,fname |grep {}'
Regards

Last edited by Klashxx; 11-21-2007 at 01:27 AM..
Reply With Quote