Created
June 26, 2022 12:37
-
-
Save hidakatsuya/7c9085cae16fecfc54e8c2fb9131e4c5 to your computer and use it in GitHub Desktop.
Bulk insertion of "# frozen_string_lteral: true" at the beggining of *.rb files
This file contains 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 . -type f -name "*.rb" -or -name "Rakefile" -print0 | xargs -0 sed -i "1i# frozen_string_literal: true\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment