shell 文件 插入行

Posted by wxianfeng Sun, 10 Jul 2011 22:44:00 GMT

一个rails2.x 的项目,需要迁移到rails3.x , ruby 1.9.2的编码问题,需要在rb文件头添加指定编码, 常见指定方式如下:

#coding:utf-8
#encoding:utf-8
# -*- coding: utf-8 -*-
# -*- encoding: utf-8 -*-

那么多rb文件总不能一个一个加吧,写个shell解决之!!!

This entry was posted on Sun, 10 Jul 2011 22:44:00 GMT and Posted in . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.

Tags , ,


Trackbacks

Use the following link to trackback from your own site:
http://wxianfeng.com/trackbacks?article_id=209

Comments

  1. Avatar
    tony {{count}} days ago:

    你好,请问你的博客现在用的是linode空间还是其他什么服务器阿?

  2. Avatar
    nomaka {{count}} days ago:

    shell 各种 方便

  3. Avatar
    wxianfeng {{count}} days ago:

    @tony
    Linode 512M

Leave a comment