家庭主页--bash字符串处理

将movie目录下的文件名写到markdown文件中 , 再转html

rm index.md ; for f in `find .  *.* `;do  [ -f $f ] && echo  '* ['`basename $f | sed 's/\[//g; s/\]//g'`']('"/movie/${f#*/}"')' >> index.md ; done

pandoc --standalone --self-contained --css pandoc.css index.md -o index.html

猜你喜欢

转载自www.cnblogs.com/bregman/p/11964254.html