在rename命令后面加上continue
-bash-4.4$ find ./ -name "*.gz.reading" | xargs -n1 rename ".reading" ""
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v,--verbose explain what is being done
-s,--symlink act on symlink target
-h,--help display this help and exit
-V,--version output version information and exit
For more details see rename(1).
-bash-4.4$ find ./ -name "*.gz.reading" | xargs -n1 rename ".reading" "" continue
-bash-4.4$ ls