Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Created April 7, 2014 07:44
Show Gist options
  • Save xarimanx/10016225 to your computer and use it in GitHub Desktop.
Save xarimanx/10016225 to your computer and use it in GitHub Desktop.
appen new line to file
find . -name *.rb | xargs perl -i.orig -pe 'print "# encoding: utf-8\n" if $. == 1; close ARGV if eof'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment