not quite...
some domains starts with number as well
i think the best way is to look for match of something dot something
then add dot in front of it...
On Tue, Feb 15, 2011 at 8:50 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On Tue, 15 Feb 2011 11:14:11 -0500, alexus wrote:
>>
>> ok, two things then
>>
>> 1) so for example if i put .test.com it'll ignore everything such as
>> www.test.com, but would it ignore test.com as well?
>> 2) assuming my first question is favorable and .test.com does both
>> things ... since my list contains list of domains and IPs, can someone
>> help me with regex to add "." in front of each domain and ignore lines
>> that contains IPs? (to run it in a shell, using i dont know awk/sed)
>
> You meanthis?
> sed s/[a-z]/.&/ <infile >outfile
>
> http://www.grymoire.com/Unix/Sed.html
>
> Amos
>
>
-- http://alexus.org/Received on Wed Feb 16 2011 - 18:23:51 MST
This archive was generated by hypermail 2.2.0 : Thu Feb 17 2011 - 12:00:05 MST