pdf转换器
https://avepdf.com/zh/text-to-pdf
#!/bin/bash
//定义合并文件方法
list_alldir(){
// 1.递归文件目录
for file2 in `ls -A $1`
do
if [ -d "$1/$file2" ];then
#echo "$1/$file2"
list_alldir "$1/$file2"
elif [ -f "$1/$file2" ];then
#2.如果后缀是.swift,合并文件
if [[ "$1/$file2" == *.swift ]] ;then
#echo "\n" >> out.txt
#echo "$1/$file2" >> out.txt
#echo "\n" >> out.txt
cat "$1/$file2" >> out.txt
fi
fi
done
}
# 这里指定为桌面了为指定的文件夹 从哪个文件夹提取
list_alldir /Users/xxx/Music/sass/sass/Move
chmod 777 test.sh
ps:
https://www.jianshu.com/p/28e76fdef44b
网友评论