隨筆 - 53, 文章 - 0, 評(píng)論 - 3, 引用 - 0
          數(shù)據(jù)加載中……

          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) 評(píng)論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 前郭尔| 彭泽县| 井研县| 内乡县| 吴桥县| 永川市| 观塘区| 枣庄市| 石嘴山市| 象山县| 八宿县| 连山| 哈巴河县| 元氏县| 阜阳市| 敦化市| 弥勒县| 遵义县| 南宁市| 惠安县| 舒兰市| 安新县| 科尔| 叙永县| 太和县| 东山县| 海淀区| 江安县| 宁海县| 资中县| 浮山县| 洞口县| 安康市| 建德市| 昭觉县| 乌鲁木齐县| 都匀市| 尼木县| 香河县| 固安县| 饶河县|