How do you append a line at the beginning of a file in Unix?

How do you append a line at the beginning of a file in Unix?
Answer
If you want to add a line at the beginning of a file, you need
to add n at the end of the string in the
best solution above. The best solution will add the string, but with the string, it will not add a line at the end of a file. to do in-place editing.
 

Tìm kiếm

Back
Top