Skip to content

Instantly share code, notes, and snippets.

@kogakure
Created December 8, 2009 13:54
Show Gist options
  • Select an option

  • Save kogakure/251637 to your computer and use it in GitHub Desktop.

Select an option

Save kogakure/251637 to your computer and use it in GitHub Desktop.
Bash: Recursive converting of ReStructured Text files to HTML in all subfolders
#!/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