Re: deleting repeated blocks of text

2006-05-05 Thread Gerald Lai
On Fri, 5 May 2006, Vim Visual wrote: Again thanks a lot... it's working fine, but today I found out that some blocks are repeated!! The blocks have to be EXACTLY the same. It seems that your last block has one less "^$". You may be off by one line. This script is meant to filter the informa

Re: deleting repeated blocks of text

2006-05-05 Thread Vim Visual
Again thanks a lot... it's working fine, but today I found out that some blocks are repeated!! This script is meant to filter the information of a web page, and it's run once every 24 hours Can you have a look at the beginning of my file, Gerald? I think it's correct and still I am getting the l

Re: deleting repeated blocks of text

2006-05-04 Thread Gerald Lai
On Thu, 4 May 2006, Tim Chase wrote: Which command should I add in the script to tell vi to embed it in the correct place? At the moment I do it by telling vi something like "go to line XXX, delete everything, insert text": :386,$d o :r /tmp/arXiV_2.txt :w! ~pau/WWW/arXiV.html But the inconv

Re: deleting repeated blocks of text

2006-05-04 Thread Tim Chase
Which command should I add in the script to tell vi to embed it in the correct place? At the moment I do it by telling vi something like "go to line XXX, delete everything, insert text": :386,$d o :r /tmp/arXiV_2.txt :w! ~pau/WWW/arXiV.html But the inconvinient is that I have to modify the vim

Re: deleting repeated blocks of text

2006-05-04 Thread Vim Visual
Hey! Thanks! This worked out perfectly Now I have another question to you... The final file, which I got thanks to the help of all of you, is to be embedded into another web page... Which command should I add in the script to tell vi to embed it in the correct place? At the moment I do i

Re: deleting repeated blocks of text

2006-05-03 Thread Gerald Lai
On Wed, 3 May 2006, Gerald Lai wrote: On Wed, 3 May 2006, Vim Visual wrote: Hi, this is the continuation of a post... The point is that I have a file where blocks of text appear sometimes once, sometimes twice or even three times etc... I would like to find out how to delete the blocks that a

Re: deleting repeated blocks of text

2006-05-03 Thread Gerald Lai
On Wed, 3 May 2006, Vim Visual wrote: Hi, this is the continuation of a post... The point is that I have a file where blocks of text appear sometimes once, sometimes twice or even three times etc... I would like to find out how to delete the blocks that are repeated, so that in the end I am lef

deleting repeated blocks of text

2006-05-03 Thread Vim Visual
Hi, this is the continuation of a post... The point is that I have a file where blocks of text appear sometimes once, sometimes twice or even three times etc... I would like to find out how to delete the blocks that are repeated, so that in the end I am left with a text file in which the blocks a