sedでやると楽らしい
sed -i -e '$a\' file
bash - How to add a newline to the end of a file? - Unix & Linux Stack Exchange
More than 5 years have passed since last update.
sedでやると楽らしい
sed -i -e '$a\' file
bash - How to add a newline to the end of a file? - Unix & Linux Stack Exchange
Register as a new user and use Qiita more conveniently