try this
sed -i '3a\
welcome to new line at 4' file-name

..
Regards
Balvinder


On Mon, Jan 28, 2013 at 4:16 PM, Chirag Anand <anand.chi...@gmail.com>wrote:

> Try using 'sed'.
>
> On 28 January 2013 16:13, Cool G <hkco...@gmail.com> wrote:
> > Hi,
> > I need a linux command to add a new line (at line number 4 in a txt file)
> > and save it using command prompt. Pls. help
> >
> > Any help is appreciated.
> >
> > Thanks.
> > hk
> > _______________________________________________
> > Ilugd mailing list
> > Ilugd@lists.linux-delhi.org
> > http://frodo.hserus.net/mailman/listinfo/ilugd
>
>
>
> --
> Chirag Anand
> http://atvariance.in
>
> _______________________________________________
> Ilugd mailing list
> Ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
>
_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to