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
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
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
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.