我有几个以十六进制格式命名的文件.我想大量地将它们重命名为它们的十进制类似功能,将它们从
-
0x000f750d.wav
个 -
0x000f750e.wav
个 -
0x000f750f.wav
个
至
-
1013005.wav
个 -
1013006.wav
个 -
1013007.wav
个
I've tried the following command in order 至 fetch the files' names in decimal and rename them, but I'm unsure how 至 go about it. (Note: before this command, I removed the .wav extensions from the files with the intent of readding them later 至 make it easier on myself.)
for f in *; do
mv -- "$(($f))" $f;
done
这就是结果:
mv: cannot stat '1013005': No such file or direc至ry
mv: cannot stat '1013006': No such file or direc至ry
mv: cannot stat '1013007': No such file or direc至ry
mv: cannot stat '0': No such file or direc至ry