摘要: shell脚本130+案例 1、批量修改文件后缀 当前目录下后缀为sh的文件,改为后缀shell。 这里列出两种方法,先看第一种。 方法1: #!/bin/bash str=`find ./ -name \*.sh` for i in $str do mv $i ${i%sh}shell done 阅读全文
posted @ 2021-10-23 20:29 Leo'sblog 阅读(118) 评论(0) 推荐(0) 编辑