参考链接1:
参考链接2: 参考链接3: 参考链接4: 参考链接5:#批量改名,增加字符ls | xargs -t -i mv {} xxx_{}#批量改名,删除/增加字符#方式一:for file in `ls xxx_*`;do mv $file `echo $file|sed 's/xxx_//g'`;done;for file in `ls *.fq`;do mv $file `echo $file|sed 's/.fq/cleaned.fq/g'`;done;#批量改名,删除字符#方式二:ls xxx_*|awk -F "xxx_" '{print "mv "$0" "$2""}'|bash#批量改名,删除字符#方式三:rename "xxx_" "" xxx_*#批量改名,删除字符#方式四:for file in `ls xxx_*`;do mv $file ${file#xxx_};done;