How do you add a line in Unix?

Giang Phạm

New member
How do you add a line in Unix?
Answer
In my case, if the file is missing the newline, the wc command returns a value of 2 and we write a newline. Run this inside the directory you would like to add newlines to.
echo $” >> <FILE_NAME> will
add a blank line to the end of the file.
 

Tìm kiếm

Back
Top