Created
March 17, 2016 11:10
-
-
Save gin0606/1f7a6fe9ecd38c996e57 to your computer and use it in GitHub Desktop.
ファイル末尾に改行入れるやつ。これは"*.rb"を指定してる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*.rb' -type f -exec sh -c "tail -1 {} | xxd -p | tail -1 | grep -q -v 0a$" ';' -exec sh -c "echo >> {}" ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment