Re: help me with this sed expression

2004-01-05 Thread Matthew Seaman
On Mon, Jan 05, 2004 at 07:49:43PM +0800, Zhang Weiwu wrote: Hello. I've worked an hour to figure out a serial of sed command to process some text (without any luck, you kown I'm kinda newbie). I really appreciate your help. The original text file is in this form -- for each line: one

Re: help me with this sed expression

2004-01-05 Thread Gautam Gopalakrishnan
On Tue, Jan 06, 2004 at 12:30:42PM +1030, Malcolm Kay wrote: On Mon, 5 Jan 2004 22:19, Zhang Weiwu wrote: Hello. I've worked an hour to figure out a serial of sed command to process some text (without any luck, you kown I'm kinda newbie). I really appreciate your help. The original text

Re: help me with this sed expression

2004-01-05 Thread Gautam Gopalakrishnan
On Tue, Jan 06, 2004 at 01:20:52PM +1100, Gautam Gopalakrishnan wrote: I think awk is easier: awk '{print $2 $3 $1}' original | tr -s target Sorry, that must read: awk '{print $2 $3 $1}' original | tr -s ' ' target ___ [EMAIL PROTECTED]

Re: help me with this sed expression

2004-01-05 Thread Gautam Gopalakrishnan
On Tue, Jan 06, 2004 at 01:24:38PM +1100, Gautam Gopalakrishnan wrote: On Tue, Jan 06, 2004 at 01:20:52PM +1100, Gautam Gopalakrishnan wrote: I think awk is easier: awk '{print $2 $3 $1}' original | tr -s target Sorry, that must read: awk '{print $2 $3 $1}' original | tr -s

Re: help me with this sed expression

2004-01-05 Thread Malcolm Kay
On Tue, 6 Jan 2004 12:50, Gautam Gopalakrishnan wrote: On Tue, Jan 06, 2004 at 12:30:42PM +1030, Malcolm Kay wrote: On Mon, 5 Jan 2004 22:19, Zhang Weiwu wrote: Hello. I've worked an hour to figure out a serial of sed command to process some text (without any luck, you kown I'm kinda

Re: help me with this sed expression

2004-01-05 Thread Gautam Gopalakrishnan
On Tue, Jan 06, 2004 at 01:45:04PM +1030, Malcolm Kay wrote: On Tue, 6 Jan 2004 12:50, Gautam Gopalakrishnan wrote: On Tue, Jan 06, 2004 at 12:30:42PM +1030, Malcolm Kay wrote: On Mon, 5 Jan 2004 22:19, Zhang Weiwu wrote: Hello. I've worked an hour to figure out a serial of sed command