in reply to Re: Add a line to the end of a file
in thread Add a line to the end of a file
I also don't think that there is a better way to do it.
How about just:
echo 'stuff' >> file.txt
This will be much faster and use buckets less memory than firing up a full blown perl interpretter. Works on Win32 or *nix. It's shorter. Better? Depends what you need.... As always YMMV.
C:\>echo Hello World! > better C:\>date /T >> better C:\>type better Hello World! Tue 17/02/2004 C:\>
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Add a line to the end of a file
by Skeeve (Parson) on Feb 18, 2004 at 14:02 UTC |