Thanks! Would there be a way to get them all on one line instead of many, seperated by a space for input to another command? Being they are all on their own lines, it's kind of messy for input to another command. Thanks, Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com > -----Original Message----- > From: shrike-list-admin@xxxxxxxxxx > [mailto:shrike-list-admin@xxxxxxxxxx] On Behalf Of Ed Greshko > Sent: Thursday, December 18, 2003 12:46 AM > To: Shrike List > Subject: Re: Sed, awk? > > > On Thu, 2003-12-18 at 13:10, Jake McHenry wrote: > > This is probably really simple for u guys.. I need a one liner to > > basically do the same as explode in php. Here is the input to the > > command: > > > > Oneliner | grep 'whatever' * > > > > What will be actually being passed to sed or whatever will look like > > this: > > > > 203lkjasdf:alsdkfjalskjf > > > > I only need the first part, before the colon. I could make up a php > > script very easly explode(":", $input); but I would like to > just have > > a short command instead of a separate script. > > cut -f 1 -d : > > example... > > $ echo "203lkjasdf:alsdkfjalskjf" | cut -f 1 -d : > 203lkjasdf > > -- > "An opinion is like an asshole - everybody has one." > - Clint Eastwood as Harry Callahan, The Dead Pool - 1988. > > > -- > Shrike-list mailing list > Shrike-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/shrike> -list > -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list