Thank you eman,

This is the working one-liner:

perl -p -i -e 's/<div class="header".*<\/a>\]<\/div>//' *

Che

On 11/15/05, Eman Gardaya Calso <[EMAIL PROTECTED]> wrote:
>
> Try this (NOT YET TESTED) regex:
> /<div class="header"[.|\n]*?<\/a>\]<\/div>//;
>
> The command will be:
> perl -p -i.bak -e 's/<div class="header"[.|\n]*?<\/a>\]<\/div>//' *.txt
>
> Just restore your files from the backups if it's wrong
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to