Search squid archive

Re: squid dstdomain www. regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> 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/



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux