926
General Software Discussion / Re: anyone know a commandline tool to add a line of text to end of a text file?
« Last post by AbteriX on October 07, 2005, 06:10 AM »Thanks rjbull,
that's very helpfully.
I played around a bit (i like unix tools but i have mostly plain dos commends only):
>To append file1 at the end of file2, type
> cat file1 >> file2
C:\>type file1 >>file2
To append a line of text at the end of file2, type
C:\>echo "some text" >>file2
To append a line of text at the beginn of file3, type
C:\>echo "some text" >tmpfile && type file3 >> tmpfile && ren tmpfile file3
that's very helpfully.
I played around a bit (i like unix tools but i have mostly plain dos commends only):
>To append file1 at the end of file2, type
> cat file1 >> file2
C:\>type file1 >>file2
To append a line of text at the end of file2, type
C:\>echo "some text" >>file2
To append a line of text at the beginn of file3, type
C:\>echo "some text" >tmpfile && type file3 >> tmpfile && ren tmpfile file3

Recent Posts

you are unbelievable, skrommel 