Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidakatsuya/7c9085cae16fecfc54e8c2fb9131e4c5 to your computer and use it in GitHub Desktop.
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
$ 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