标题: 怎样消除文本文件中的"符号
[打印本页]
作者: kangoo
时间: 2008-2-15 14:21
标题: 怎样消除文本文件中的"符号
想生成一个类似于以下的语句到文本文件中:
select c1 || c2 from t1 where c3 < sysdate;
用echo select c1 || c2 from t1 where c3 < sysdate; >> temp.txt时不支持
只好改成echo "select c1 || c2 from t1 where c3 < sysdate;" >> temp.txt
但这个生成的temp.txt因为行头尾多了个"号没法使用, 到这里找一个高手看怎样用DOS中的命令把temp.txt中每行头尾的"去掉.
作者: kangoo
时间: 2008-2-15 14:28
晕, 刚才在XP中乱试了一下, 发现
echo select c1 ^|^| c2 from t1 where c3 ^< sysdate; >> temp.txt
竟然可以的