for file in *; do echo "<li><a href=\"$file\">$file</a></li>" >> links.html; done
Showing posts with label unix bash cygwin shell html scripts. Show all posts
Showing posts with label unix bash cygwin shell html scripts. Show all posts
Friday, December 24, 2010
Export HTML List of Links With Bash/Unix/Cygwin
Why use an IDE when you can have fun with the Shell??? This little tidbit will rip through the files in the current directory and redirect the output with hyperlink wrappers to a file named links.html.
Subscribe to:
Posts (Atom)