linux批量为文件增加末尾换行符 2017-12-21 本文已影响0人 krystollia git ls-files | while read f; do tail -n1 $f | read -r _ || echo >> $f; done