The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 03-09-2008
grebbux grebbux is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 10
I think I'm getting somewhere, when I try this:


Code:
echo $DirectoryListing | sed 's/ /<br>/' >> $HTMLFILE

FYI: Nothing is listed if I put the above $DirectoryListing in "".

The listing looks like this:


Code:
_uninst
admindocs bin cgi-bin conf example_module htdocs icons include keys.q.hpicheck.com keys.q.hpicheck.com.20061002_141729 keys.q.racexaminations.co.uk keys.q.racvehiclehealthcheck.co.uk keys.q.vehiclestatusreport.co.uk libexec license logs man readme ssl tivready version.signature

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!

Thanks again for reading.
grebbux.