Re: [squid-users] squid dstdomain www. regex

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 16 Feb 2011 14:50:58 +1300

 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
Received on Wed Feb 16 2011 - 01:51:02 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 16 2011 - 12:00:03 MST