亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: how to replace " to ' using sed ? [打印本頁]

作者: qzhu    時(shí)間: 2007-02-27 03:24
標(biāo)題: how to replace " to ' using sed ?
I need to replace all double quote , i.e. " with 2 single quotes ' '
Could any one tell me how to do this using sed?
sed 's/\"/\'\'/g' does not seem to be working, its a little bit tricky.
作者: 大螞蟻    時(shí)間: 2007-02-27 03:38
sed 's/\"/\'/g'
作者: qzhu    時(shí)間: 2007-02-27 04:40
都說過不行了
作者: skrypto    時(shí)間: 2007-02-27 04:53
樓主看清楚了

  1. echo '""' |sed s/\"/\'\'/g
復(fù)制代碼

作者: qzhu    時(shí)間: 2007-02-27 06:56
多謝,原來如此簡單。 簡單之后的道理呢,說簡單也簡單,說不簡單也不簡單。




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2