Re: Problem using $1 in substitution command

2007-04-16 Thread John W. Krahn
Andreas Karlsson wrote: > Hi guys, Hello, > I'm doing a script to search through a lot of files and doing some > replacements. > It is a lot of different replacements that has to be done so I list them in a > .txt > instruction file in two columns representing the strings to be matched and > r

Problem using $1 in substitution command

2007-04-16 Thread Andreas Karlsson
Hi guys, I'm doing a script to search through a lot of files and doing some replacements. It is a lot of different replacements that has to be done so I list them in a .txt instruction file in two columns representing the strings to be matched and replaced and the new text. A problem arise when d

Re: Removing lines

2007-04-16 Thread Xavier Noria
On Apr 15, 2007, at 6:38 PM, Mário Gamito wrote: I have this site that auto generates an index.html file every 15 minutes (it's a blog aggregator). I need that every time the file is generated, all the contents between the lines href="http://domain.com/2006/08/bourne-shell.html";>Bourne Shell

Removing lines

2007-04-16 Thread Mário Gamito
Hi, I have this site that auto generates an index.html file every 15 minutes (it's a blog aggregator). I need that every time the file is generated, all the contents between the lines http://domain.com/2006/08/bourne-shell.html";>Bourne Shell and http://domain.com/2006/08/bourne-shell.html";>S