Re: Same text at the beginning of line. Simple Shell-Script?



dragomir kollaric wrote:
Is there a easy way to insert the same text (consisting of a few
chars) at the beginning of each paragraph or Sentence in a Document? With
a shell-script or the like? Or with the Editor Vim? Each of the lines
start with numbers, and not with a word.

Anybody got some Ideas, how this can be done?


man sed
man awk

Substitute for newline, newline XXXX etc..

Thanks :-)


Dragomir Kollaric
.



Relevant Pages

  • Treetop parser (or PEG in general?) questions
    ... I've been looking for something like treetop for a while now. ... This is a second paragraph. ... There is no newline ...
    (comp.lang.ruby)
  • Re: Treetop parser (or PEG in general?) questions
    ... In the above, there is 'block' content, and 'inline' content. ... means that their markup is only valid at the start of a line. ... If you want a rule to match after a newline, call it after a newline, ... As seen in the example above, a paragraph (or any block level element, ...
    (comp.lang.ruby)
  • Re: need a newline between paragraphs....
    ... If any time there's a newline you've got a new paragraph, ... can just use a simple substitution regex to replace all instances of one ... if that doesn't screw up some other formatting you have in the file. ...
    (freebsd-questions)
  • Re: alpine 2.0: wrap-around for the reply
    ... but just use newline. ... and to make it obvious where a paragraph ends you really ... modern practice, and one from the word processor world. ... whereas 'justify to newline' would be required. ...
    (comp.mail.pine)
  • Re: Formatting text files for the Mac
    ... Greg Andrews wrote: ... >every line in the file it's own paragraph. ... Windows text files often use CRLF as the "hard" newline between paragraphs, ... Please DON'T copy followups to me -- I'll assume it wasn't posted to the group. ...
    (comp.unix.shell)