|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I'm writing a little script that dynamically creates links to html files in a directory (and sub-directories). This all works great. However I want the text of the links to be the title in the html page.
I thought of using grep (the unix command - NOT the perl function) to pull out the title. However I can't seem to get grep to create any output. Has any body got any ideas? Or other ways of doing it? I could specifically open every file but I want it to be as quick as pos. |
|
#2
|
|||
|
|||
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
$title = `grep -i '<title>' "$dir/$result"`; [/code] |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > grep in perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|