Re: Using grep to do a automatic numerotation

2018-12-22 Thread Christopher Stone
On 12/21/2018, at 14:16, Alex gat mailto:alex.garacot...@gmail.com>> wrote: > I have that very long text file, made of several paragraphs. Each paragraphs > is separated by a double carriage return (\n\n). > > What I'd like to do is to replace each \n\n by a number that automatically > increase

Using grep to do a automatic numerotation

2018-12-21 Thread Alex gat
Hello, Maybe someone could help me. I have that very long text file, made of several paragraphs. Each paragraphs is separated by a double carriage return (\n\n). What I'd like to do is to replace each \n\n by a number that automatically increase for each occurrence. What grep function should