linux批量为文件增加末尾换行符

2017-12-21  本文已影响0人  krystollia

git ls-files | while read f; do tail -n1 $f | read -r _ || echo >> $f; done

上一篇 下一篇

猜你喜欢

热点阅读