請問sed 取代 ' 的語法 - Linux

By Odelette
at 2009-09-09T08:52
at 2009-09-09T08:52
Table of Contents
各位版友好
想請問一下一個 sed 取代的問題
目前有一個檔案 a.txt 內容含有
'h','t','t','p',':','/','/'
用指令 sed 's/,//g' a.txt > b.txt
得到b.txt的內容為 'h''t''t''p'':''/''/'
請問要怎麼才能把 ' 取代掉呢?
得到 http://
因為用sed 's/'//g' b.txt > c.txt 都一直出錯 >_<
--
想請問一下一個 sed 取代的問題
目前有一個檔案 a.txt 內容含有
'h','t','t','p',':','/','/'
用指令 sed 's/,//g' a.txt > b.txt
得到b.txt的內容為 'h''t''t''p'':''/''/'
請問要怎麼才能把 ' 取代掉呢?
得到 http://
因為用sed 's/'//g' b.txt > c.txt 都一直出錯 >_<
--
Tags:
Linux
All Comments

By Quanna
at 2009-09-10T18:07
at 2009-09-10T18:07

By Dora
at 2009-09-15T13:30
at 2009-09-15T13:30

By Agnes
at 2009-09-19T20:28
at 2009-09-19T20:28

By Carolina Franco
at 2009-09-22T06:00
at 2009-09-22T06:00

By Sierra Rose
at 2009-09-24T21:16
at 2009-09-24T21:16

By Mason
at 2009-09-27T12:36
at 2009-09-27T12:36

By Lydia
at 2009-10-02T09:28
at 2009-10-02T09:28

By Erin
at 2009-10-05T03:17
at 2009-10-05T03:17

By Barb Cronin
at 2009-10-09T05:39
at 2009-10-09T05:39

By Charlie
at 2009-10-12T11:46
at 2009-10-12T11:46

By Andrew
at 2009-10-16T17:27
at 2009-10-16T17:27

By Franklin
at 2009-10-19T22:33
at 2009-10-19T22:33

By Jacob
at 2009-10-24T13:00
at 2009-10-24T13:00

By Rae
at 2009-10-25T18:49
at 2009-10-25T18:49

By Harry
at 2009-10-30T16:25
at 2009-10-30T16:25

By Gary
at 2009-11-01T01:12
at 2009-11-01T01:12

By Lydia
at 2009-11-02T13:14
at 2009-11-02T13:14

By Joe
at 2009-11-04T17:40
at 2009-11-04T17:40

By Xanthe
at 2009-11-04T18:46
at 2009-11-04T18:46

By Tristan Cohan
at 2009-11-08T17:53
at 2009-11-08T17:53
Related Posts
在 EeePC 701 上安裝 PCManX

By Kama
at 2009-09-09T02:40
at 2009-09-09T02:40
grub和mbr問題

By Regina
at 2009-09-09T00:49
at 2009-09-09T00:49
查詢 DNS 出現 Served by: 代表什麼呢?

By Zanna
at 2009-09-08T23:14
at 2009-09-08T23:14
在不同的副檔名時啟動gvim的latex-suite

By Noah
at 2009-09-08T21:51
at 2009-09-08T21:51
xubuntu下顯示的問題

By Brianna
at 2009-09-08T14:59
at 2009-09-08T14:59