Re: How To append text in column On 24 Apr, 14:53, Laurenz Albe <inv...@spam.to.invalid> wrote:
> invincible <imanuk2...@googlemail.com> wrote:
> > I have a file , which has a single column. I want to append a single
> > text string after each string in the whole column.
>
> > Tried doing %s/.$/text on vi but this eats away last alphabet on every
> > line.
>
> Yes, because you replaced that last letter.
> Why not
>
> %s/$/yourtext/
>
> Yours,
> Laurenz Albe
Thanyou a lot Laurenz for your help. Its worked Now.:-) |