标签:shell 文件 tar cti name one highlight pre html
#!/bin/bash function show() { cd $1 for i in `ls` do if [ -d "$i" ] then show "$1/$i" else filename=$(basename "$1/$i") extension="${filename##*.}" filename1="${filename%.*}" if [ "$extension" = "md" ] then eval "python -m markdown.__main__ $1/$filename1.md > $1/$filename1.html" fi fi done cd .. } show $1 exit 0
标签:shell 文件 tar cti name one highlight pre html
原文地址:http://www.cnblogs.com/zergling9999/p/6027563.html