請教一個sed的用法 - Linux
By John 
at 2011-09-25T07:43
at 2011-09-25T07:43
Table of Contents
如果有一個xml檔內容如下: 
<string name="hello">Hello World, main!</string>
我想要把標籤包住的文字抓出來(例如:Hello World, main!)
 
請問如果用sed的話應該怎麼寫呢?
 
謝謝
 
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
 
--
    <string name="hello">Hello World, main!</string>
我想要把標籤包住的文字抓出來(例如:Hello World, main!)
請問如果用sed的話應該怎麼寫呢?
謝謝
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
Tags:
        Linux
        
All Comments
By Caitlin 
at 2011-09-27T19:49
at 2011-09-27T19:49
Related Posts
OpenSuSE安裝時找不到SATA模擬的IDE硬碟
By Robert 
at 2011-09-24T19:28
at 2011-09-24T19:28
用wubi安裝ubuntu11.04不能裝
By Charlie 
at 2011-09-24T00:48
at 2011-09-24T00:48
Centos 5.6無法安裝TeamViewer
By Tom 
at 2011-09-23T18:57
at 2011-09-23T18:57
為什麼從x11切到tty時網路會斷線一下下
By Rebecca 
at 2011-09-23T16:41
at 2011-09-23T16:41
請問將port trigger加到iptables
By Delia 
at 2011-09-23T16:12
at 2011-09-23T16:12