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

Re: automated editing of text files



On Fri, 16 Sep 2011 17:01:40 +0200, Bonno Bloksma wrote:

> I have a bunch of files where I need an extra line after a <pre> code.
> So I need to change <pre>CRLF (or <pre>LF) to <pre>CRLFCRLF.
> 
> Which toool can I use for that, I can't remember which tool is a good
> one for this and google is no help.
> I am not fluent in any of the programming languages but I do write bash
> scripts.

I bet you can do this with a bash script for looping into the text files 
and then replacing the text with "sed".

Yep, something like this:

http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/

Greetings,

-- 
Camaleón


Reply to: