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
|