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

Re: Deleting some regexp/simple expression from lots of files in a secure way



Karl Vogel wrote:
>>> On Fri, 14 May 2010 19:04:42 +0200, 
>>> Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> said:
>>>       
>
> M> I have many text files (actually .tex files) which contain some sequence
> M> or regexp (it depends on the files) that I would like to remove. Is
> M> there a commandline/GUI for doing this massive edit?
>
>    If you have perl and the Tie::File module installed, the script below
>    should do the trick.  I have a shell version that creates and runs an
>    "ex" command if you're interested.
>   
Nice.
> M> http://www.student.montefiore.ulg.ac.be/~merciadri/
>
>    Sure hope this isn't some homework thing... :)
>   
Not at all, it's just for my personal culture. I would not have dared
asking for this if it had been some homework!

-- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.




Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: