[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



> 
> I do this...
> 
> sed "s/handbook.xml\?/handbook.xml\%3F/" handbook.xml > handbook.html
> 
> 
> and sed really converts the string to "handbook.xml??"
> 
> Where is the extra "?" coming from??
> 
> Alternately, I tried sed "s/handbook.xml\?part/handbook.xml\%3Fpart/"
> handbook.xml > handbook.html and that seems to work OK (for those
> lines that actually have "part" in them).

Weird it works for me.  Try:

sed 's/handbook.xml[?]/\handbook.xml\%3F/'

(single quotes, and the brackets isolate the ?)

-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems in spite of Microsoft


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01131" href="msg01131.html">[ale] sed &amp; regex</a></strong>
<ul><li><em>From:</em> hne at hopnet.net (Keith Hopkins)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01080" href="msg01080.html">[ale] sed &amp; regex</a></strong>
<ul><li><em>From:</em> hne at hopnet.net (Keith Hopkins)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01083.html">[ale] Hardware</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01085.html">[ale] lnx-bbc + serial console</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01082.html">[ale] sed &amp; regex</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01131.html">[ale] sed &amp; regex</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01084"><strong>Date</strong></a></li>
<li><a href="threads.html#01084"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>