Quote:
Originally Posted by grebbux
I think I'm getting somewhere, when I try this:
Code:
echo $DirectoryListing | sed 's/ /<br>/' >> $HTMLFILE
So I have one <br> after the first listing. I don't understand why the break isn't substituted for all the other spaces though!
|
That
sed s command only replaces the first match. You need the g flag to do them all.
Code:
echo $DirectoryListing | sed 's/ /<br>/g' >> $HTMLFILE