Created
December 8, 2009 13:54
-
-
Save kogakure/251637 to your computer and use it in GitHub Desktop.
Bash: Recursive converting of ReStructured Text files to HTML in all subfolders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Convert all Restructured Text files in all subfolders recursivley to HTML | |
| for i in $( find . -name '*.rst' ); do | |
| string=$i | |
| length=${#string} | |
| file=${string:2:$length-6} | |
| rst2html.py $file.rst $file.html | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment