View Single Post

   
  #4 (permalink)  
Old 04-24-2008, 04:38 PM
invincible
 
Posts: n/a
Default 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.:-)
Reply With Quote