Could you please mention as an example?

i have a text file abc.txt and inside this file there is
cat abc.txt
aaa
bbb
ddd

i want to add ccc at line 3. please suggest.

thanks.

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

Reply via email to