隨筆 - 53, 文章 - 0, 評論 - 3, 引用 - 0
          數據加載中……

          How to substitute text in the file.

          9/26/2008 8:57AM
          Today I want to research the different ways to substitute text in the file. For records, I written them down.

          1. use Ultra Edit, it is super easy for a Windows user if you have Ultra Edit installed.
          use Ctrl + R to get Replacement Wizard and follow you intuition.

          2. use VI in Unix.
          :s/xx/yy/
          will replace xx with yy.

          3. use filter, such as sed, and awk in Unix.
          sed -e 's/xx/yy/g' file.in > file.out
          replace xx with yy in all the lines. It seem sed will not change the original input file, so I redirect the out put to file.out


          posted on 2008-09-26 10:24 InPractice 閱讀(86) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 怀仁县| 锡林郭勒盟| 瑞金市| 通山县| 梁山县| 奉贤区| 子洲县| 宁蒗| 青岛市| 泾川县| 富蕴县| 吉安县| 梓潼县| 石首市| 黎川县| 永嘉县| 应用必备| 高邑县| 巧家县| 平度市| 苏尼特右旗| 宝山区| 凯里市| 林州市| 台北市| 平武县| 托克托县| 阜康市| 虹口区| 遂平县| 沧州市| 莱西市| 大英县| 和平区| 海门市| 九江县| 信阳市| 濮阳县| 三亚市| 思茅市| 大新县|