Skip to content

Instantly share code, notes, and snippets.

@liwh
Created October 29, 2010 02:10
Show Gist options
  • Save liwh/652752 to your computer and use it in GitHub Desktop.
Save liwh/652752 to your computer and use it in GitHub Desktop.
快速添加到每一个文件的方法
find app -iname '*.rb' | xargs sed -i '1 i\# encoding: utf-8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment