searching the GCC manual (tip of the day)

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

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux