把文件名中的空格全部去掉
.txt 改成-0.txt
rename "s/ //g" *
rename "s/.txt/-0.txt/" *
列出当前目录下所有文件的绝对路径
find $PWD -maxdepth 1 | xargs ls -ld
压缩文件列表(file_list.txt)内的所有文件
zip archive -@ < file_list.txt
zip --help
-@ read names from stdin
把文件名中的空格全部去掉
.txt 改成-0.txt
rename "s/ //g" *
rename "s/.txt/-0.txt/" *
列出当前目录下所有文件的绝对路径
find $PWD -maxdepth 1 | xargs ls -ld
压缩文件列表(file_list.txt)内的所有文件
zip archive -@ < file_list.txt
zip --help
-@ read names from stdin
本文标题:linux 技巧
本文链接:https://www.haomeiwen.com/subject/bslenttx.html
网友评论