This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: searching the GCC manual (tip of the day)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]