linux - How do I append text to a file? -


what easiest way append text file in linux?

i had at question, accepted answer uses additional program (sed) i'm sure there should easier way echo or similar.

cat >> filename text, perhaps pasted in other source. or else entered @ keyboard, doesn't matter.  ^d 

essentially, can dump text want file. ctrl-d sends end-of-file signal, terminates input , returns shell.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -