Re: Help with SED [OT]

2008-04-28 Thread Henrik K
On Mon, Apr 28, 2008 at 01:48:11AM -0500, Bookworm wrote: > Bill Randle wrote: >> On Sat, 2008-04-26 at 11:17 -0700, Marc Perkel wrote: >> >>> Trying to do something that should be simple. Using sed to remove the >>> first part of a hostname but not working. I want: >>> >>> abc.def.com to becom

Re: Help with SED [OT]

2008-04-27 Thread Bookworm
Bill Randle wrote: On Sat, 2008-04-26 at 11:17 -0700, Marc Perkel wrote: Trying to do something that should be simple. Using sed to remove the first part of a hostname but not working. I want: abc.def.com to become def.com I tried a lot of variations of the following but it's either greedy

Re: Help with SED [OT]

2008-04-26 Thread Bill Randle
On Sat, 2008-04-26 at 11:17 -0700, Marc Perkel wrote: > Trying to do something that should be simple. Using sed to remove the > first part of a hostname but not working. I want: > > abc.def.com to become def.com > > I tried a lot of variations of the following but it's either greedy or > does n

Help with SED [OT]

2008-04-26 Thread Marc Perkel
Trying to do something that should be simple. Using sed to remove the first part of a hostname but not working. I want: abc.def.com to become def.com I tried a lot of variations of the following but it's either greedy or does nothing. sed -e 's/^.*?[.]//' Thanks in advance.