append to a text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Danny,
You need to save the file before you append it to the first file.  I think
Buddy has the right idea but the files are reversed.  The cat command
prints the contents of the specified file.  The >> redirects the output
from the console to the end of the second file.

Chris
On Fri, Sep 05, 2003 at 03:00:39PM -0400, Buddy Brannan wrote:
> Try this:
> cat file-to-append-to >> file-to-append
> Note the two greater-thans. Better use both, else it'll overwrite the contents of the file rather than appending to it.
> -- 
> Buddy Brannan, KB5ELV/3    | But I will lay my burden 
> Email: davros at ycardz.com   | in the cradle of your grace,
> ICQ: 36621210              | And the shining beaches of your love,
> http://www.ycardz.com      | and the sea of your embrace.--Dave Carter
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux