Search squid archive

Re: squid dstdomain www. regex

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

 



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



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

  Powered by Linux