Last active
March 26, 2023 16:57
-
-
Save hugorodgerbrown/5317616 to your computer and use it in GitHub Desktop.
Revisions
-
hugorodgerbrown revised this gist
Apr 5, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,9 +12,9 @@ FILES=*.md for f in $FILES do # extension="${f##*.}" filename="${f%.*}" echo "Converting $f to $filename.rst" `pandoc $f -t rst -o $filename.rst` # uncomment this line to delete the source file. # rm $f -
hugorodgerbrown revised this gist
Apr 5, 2013 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -13,9 +13,8 @@ FILES=*.md for f in $FILES do echo "Processing $f file..." # extension="${f##*.}" filename="${f%.*}" `pandoc $f -t rst -o $filename.rst` # uncomment this line to delete the source file. # rm $f -
hugorodgerbrown revised this gist
Apr 5, 2013 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,13 @@ # This script was created to convert a directory full # of markdown files into rst equivalents. It uses # pandoc to do the conversion. # # 1. Install pandoc from http://johnmacfarlane.net/pandoc/ # 2. Copy this script into the directory containing the .md files # 3. Ensure that the script has execute permissions # 4. Run the script # # By default this will keep the original .md file FILES=*.md for f in $FILES @@ -10,4 +17,6 @@ do filename="${f%.*}" # take action on each file. $f store current file name `pandoc $f -t rst -o $filename.rst` # uncomment this line to delete the source file. # rm $f done -
hugorodgerbrown revised this gist
Apr 5, 2013 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ # This script was created to convert a directory full # of markdown files into rst equivalents. It uses # pandoc to do the conversion. FILES=*.md for f in $FILES do -
hugorodgerbrown created this gist
Apr 5, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ FILES=*.md for f in $FILES do echo "Processing $f file..." extension="${f##*.}" filename="${f%.*}" # take action on each file. $f store current file name `pandoc $f -t rst -o $filename.rst` done