Afficher un message
Vieux 03/01/2008, 13h09   #8
Nirav
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: adding a word at the end of each line

On Jan 2, 1:02 pm, Rakesh Sharma <sharma...@hotmail.com> wrote:
> On Jan 1, 7:56 pm, surajkum...@gmail.com wrote:
>
>
>
> > Hi Folks,

>
> > I want to add a word after each line.

>
> > For eg

>
> > Line1
> > Line2
> > Line3
> > Line4

>
> > and output will be

>
> > Line1
> > test
> > Line2
> > test
> > Line3
> > test
> > Line4
> > test

>
> sed -e '
> G
> s/$/test/
> ' < yourfile



Hi,

What shhall we do if we want to add the same word at the beginning of
each line.


-Nirav

  Réponse avec citation
 
Page generated in 0,25710 seconds with 9 queries