rename sframepdbd+frame_$1pdb framepdbbash rename:未找到命令
It seems that the rename command is not available in your current shell. You can try using the mv command instead to achieve the same result:
for file in frame.pdb.*; do
mv "$file" "$(echo "$file" | sed 's/frame\.pdb\.(\d+)/frame_$1.pdb/')"
done
This loop will iterate over all files matching the pattern frame.pdb.*, and for each file, it will use sed to replace the pattern frame.pdb.(\d+) with frame_$1.pdb.
原文地址: https://www.cveoy.top/t/topic/ipxM 著作权归作者所有。请勿转载和采集!