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 | |
# 使用方法: 在有jupyter的环境下: | |
# ./render_jupyter.sh <文件名> <作者> | |
FILE_NAME=`echo ${1%.*} | awk -F/ '{print $NF}'` | |
TEX_FILE_NAME="$FILE_NAME.tex" | |
RENDER_DIR="./render/" | |
AUTHOR=$2 | |
RENDER_DIR="$RENDER_DIR/$FILE_NAME/$AUTHOR/" | |
mkdir -p $RENDER_DIR |
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 | |
# 遍历文件夹中的所有文件,将字符集从GB18030转换为UTF | |
# 参数: | |
# $1:源文件夹 | |
# $2:目标文件夹 | |
# 获取文件夹中的所有文件: | |
FILES=`find $1 -type f` |
NewerOlder