How do you append text to a file in Unix?

Ngô Thị Vân

New member
How do you append text to a file in Unix?
Answer
You can use cat with redirection to append a file to another file. You do this by using the append redirection symbol,
“>>
”. To append one file to the end of another, type cat, the file you want to append, then >>, then the file you want to append to, and press .
 

Tìm kiếm

Back
Top