zoukankan      html  css  js  c++  java
  • mac osx sed 命令

    $ sed -i "s/devicedemo/device/g" `grep devicedemo -rl ./`

    sed: 1: ".//.coveragerc": invalid command code .

     

    $ sed -i " " 's/devicedemo/device/g' `grep devicedemo -rl .`

    sed: RE error: illegal byte sequence

     

    $ export LC_COLLATE='C'

    $ export LC_CTYPE='C'

     

    sed -i "" 's/old_string/new_string/g' `grep old_string -rl . --exclude-dir .git`

     

  • 相关阅读:
    property 中的strong 与weak
    ios5 StoryBoard
    PLINQ中的分区
    ZOJ3704 I am Nexus Master! 模拟
    POJ1470 Closest Common Ancestors TarjanLCA
    XTU1170 Coin 线段树
    HDU2586 How far away ? LCATarjan Or spfa
    CF#303C Minimum Modular 数学分析
    CF#303B Rectangle Puzzle II 数学分析
    ZOJ3698 Carrot Fantasy 恶心模拟
  • 原文地址:https://www.cnblogs.com/tangkaixin/p/6297309.html
Copyright © 2011-2022 走看看