Found this working ..  <div><br></div><div><div>#!/bin/bash</div><div> </div><div>cmd="sudo varnishadm -T <a href="http://127.0.0.1:6082">127.0.0.1:6082</a> -S /etc/varnish/secret"</div><div>site="<a href="http://www.xyz.com">www.xyz.com</a>"</div>
<div>pages="</div><div>/</div><div>/feed/</div><div>/feed/atom/</div><div>"</div><div> </div><div>echo -----------------------------</div><div>echo Purging old pages from cache</div><div>echo -----------------------------</div>
<div>#for page in $pages; do </div><div># $cmd ban.url "^$page\$" | sed '/^$/d' </div><div>#$cmd ban.url "$site$page\$" | sed '/^$/d'  </div><div>$cmd ban req.http.host == "$site"</div>
<div>$cmd ban.list | head -n 1</div><div>#done</div><div> </div><div>echo ---------------------------------------</div><div>echo Populating cache with new page content</div><div>echo ---------------------------------------</div>
<div>#for page in $pages; do </div><div># Remove for loop in case of single site</div><div>curl -sL -w "%{http_code} %{url_effective}\n" $site -o /dev/null</div><div>#done</div><div><br></div><div><br></div><br>
<div class="gmail_quote">On Wed, Aug 1, 2012 at 10:04 PM, Zeeshan Ali Shah <span dir="ltr"><<a href="mailto:zeeshan@infoshield.info" target="_blank">zeeshan@infoshield.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I tried ban instead of purge since it is obsolete in 3 but still data coming old .   any hint ? i used the script from below<div><br></div><div>BR</div><div><br></div><div>Zeeshan<br><div><br></div><div><div>v-purge-common </div>

<div><br></div><div>#!/bin/bash</div><div> </div><div>cmd="sudo varnishadm -T <a href="http://127.0.0.1:6082" target="_blank">127.0.0.1:6082</a> -S /etc/varnish/secret"</div><div>site="<a href="http://www.xyx.com" target="_blank">http://www.xyx.com</a>"</div>

<div>pages="</div><div>/</div><div>/feed/</div><div>/feed/atom/</div><div>"</div><div> </div><div>echo -----------------------------</div><div>echo Purging old pages from cache</div><div>echo -----------------------------</div>

<div>for page in $pages; do </div><div># $cmd ban.url "^$page\$" | sed '/^$/d' </div><div>$cmd ban.url "$site$page\$" | sed '/^$/d'  </div><div>$cmd ban.list | head -n 1</div><div>done</div>

<div> </div><div>echo ---------------------------------------</div><div>echo Populating cache with new page content</div><div>echo ---------------------------------------</div><div>for page in $pages; do </div><div> curl -sL -w "%{http_code} %{url_effective}\n" $site/$page -o /dev/null</div>

<div>done</div></div><div><br></div><div><br></div></div>
</blockquote></div><br></div>