I know I have already asked this question, but I didn't get an answer that worked. So please could someone answer my question?
I have a text file, containing paragraphs of text, each separated by a single empty line. Now I need to number each paragraph with its own number. So the first paragraph will have the number 1 in the margin, the second paragraph will have the number 2 in the margin and the third will have the number 3 in the margin, etc. I know it seems obvious but I think my last post may not have got the message across clearly.
So I need a Linux command that can get that job done. However, my issue is that the command needs to be simple. By that, I mean no complicated Perl scripts or, any difficult to understand, blocks of code.
What I'm looking for, is a simple command that can easily carry out the task. Or if a script needs to be written, make it simple and explain the code so someone who has never used Perl nor Bash scripts can still apply it to their code and understand what they are doing.
Sorry if the question may come across as impolite. Responses will much be appreciated because there is nothing on the web on this topic.