Board logo

标题: sed -e "s/\"/*/g" 1.txt|more>>2.txt出错的原因 [打印本页]

作者: junchen2     时间: 2007-9-24 22:52    标题: sed -e "s/\"/*/g" 1.txt|more>>2.txt出错的原因

sed -e "s/\"/*/g" 1.txt可以执行
sed -e "s/\"/*/g" 1.txt|more>>2.txt就出错
我想将sed -e "s/\"/*/g" 1.txt执行结果输出到文本?
先谢谢了!!!

[ Last edited by junchen2 on 2007-9-24 at 11:12 PM ]
作者: wudixin96     时间: 2007-9-24 23:03
sed -e "s/"/*/g" 1.txt

楼主在另一个帖子中说不能执行,而在本帖中却说可以执行??
作者: junchen2     时间: 2007-9-24 23:13
呵呵,忘了加 \ 了 ,wudixin96兄帮忙写下啊
我想将sed -e "s/\"/*/g" 1.txt执行结果输出到文本???

[ Last edited by junchen2 on 2007-9-24 at 11:41 PM ]
作者: lxmxn     时间: 2007-9-25 00:20

set "s/\"/*/g" 1.txt" |more > 2.txt

作者: ccwan     时间: 2007-9-25 07:56
set还有这种功能?应该是sed
作者: vkill     时间: 2007-9-25 19:53
把"换为\x22就可以了
作者: junchen2     时间: 2007-9-25 20:20
C:\Documents and Settings\Administrator\桌面\down\down>set "s/\x22/*/g" 1.html"
|more >> 2.txt
环境变量 s/\x22/*/g" 没有定义
好象不行啊!!!vkill兄
作者: lxmxn     时间: 2007-9-25 21:05


  Quote:
Originally posted by junchen2 at 2007-9-25 20:20:
C:\Documents and Settings\Administrator\桌面\down\down>set "s/\x22/*/g" 1.html"
|more >> 2.txt
环境变量 s/\x22/*/g" 没有定义
好象不行啊!!!vkill兄

set
汗...
作者: junchen2     时间: 2007-9-25 21:33
呵呵,我是一头pig,谢谢!!!!!