public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* searching the GCC manual (tip of the day)
@ 2004-08-26 15:23 Eljay Love-Jensen
  2004-08-26 15:56 ` Eljay Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-08-26 15:23 UTC (permalink / raw)
  To: gcc-help

Tip of they day..

Put this into a script where you've unpacked your GCC documentation from 
the tarball.
---------------------------
echo "<html><head></head><body>" >tmp.htm
echo "<p>Your results..." >>tmp.htm
grep -l -i "$1" *.html | sed 's@\(.*\)@<br><a href="\1">\1<a>@' >> tmp.htm
echo "</body></html>" >tmp.htm
---------------------------

This will create a (more-or-less well-formed) html page with your search 
results.  Since the GCC documentation pages end in extension ".html", this 
page should be isolated from the real documentation.

Then you can use your browser to load up tmp.htm and view each of the 
resulting pages.

Enjoy,
--Eljay 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: searching the GCC manual (tip of the day)
  2004-08-26 15:23 searching the GCC manual (tip of the day) Eljay Love-Jensen
@ 2004-08-26 15:56 ` Eljay Love-Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-08-26 15:56 UTC (permalink / raw)
  To: gcc-help

Cut and paste error missed a ">" where a ">>" was needed, fixed below...
---------------------------
echo "<html><head></head><body>" >tmp.htm
echo "<p>Your results..." >>tmp.htm
grep -l -i "$1" *.html | sed 's@\(.*\)@<br><a href="\1">\1<a>@' >> tmp.htm
echo "</body></html>" >>tmp.htm
---------------------------

--Eljay

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-26 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-26 15:23 searching the GCC manual (tip of the day) Eljay Love-Jensen
2004-08-26 15:56 ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).