I am creating an html document which is a documentation inventory of all server/project docs. To get this info I ran 'ls -ltRa /foo/documents'. I then pruned the output to provide only filenames and ran that through sed to get something like the following:
<a href=" stats.doc"> mailserver stats.doc</a>
This is a 6300 line file, and I need to replace the spaces with a %20 for the file to be recognized in the browser. I'm not a Perl or Regex GURU (yet), and would like to know of a regex which would replace the spaces found in the filenames (which is the only place there are spaces in this file) with a %20. I know "there's more than one way to do it" and would just like to be provided with one of them.
Thanks for any and all help. d3funct
zimmer.jon@cfwy.com
The software required `Windows 95 or better', so I installed Linux.
<a href=" stats.doc"> mailserver stats.doc</a>
This is a 6300 line file, and I need to replace the spaces with a %20 for the file to be recognized in the browser. I'm not a Perl or Regex GURU (yet), and would like to know of a regex which would replace the spaces found in the filenames (which is the only place there are spaces in this file) with a %20. I know "there's more than one way to do it" and would just like to be provided with one of them.
Thanks for any and all help. d3funct
zimmer.jon@cfwy.com
The software required `Windows 95 or better', so I installed Linux.