[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Mar 30 09:56:07 2004 -->
- <!--x-from-r13: rfbgrevp ng 3gvzrf25.arg (Urbsserl) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] sed & regex -->
- <li><em>date</em>: Tue Mar 30 09:56:07 2004</li>
- <li><em>from</em>: esoteric at 3times25.net (Geoffrey)</li>
- <li><em>in-reply-to</em>: <<a href="msg01080.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg01080.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] sed & regex</li>
>
> 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 & 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 & 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 & regex</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01131.html">[ale] sed & 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>