From: Martin DeMello Date: 2007-07-11T18:11:00+09:00 Subject: Re: Help: Efficient regular expression On 7/11/07, Paolo Negri wrote: > You can process the ps output using other commands. > > ps -aef|tr -s ' '|cut -d ' ' -f2,8- > > This will just print your second column the 8th and anything that > comes after. At this point your regexp only need to split the string > at the first space. You're in trouble if any of your fields have spaces, though the specific case of ps -aef looks safe enough. martin