This isn’t elegant, but it surely ought to get the job performed, supplied there isn’t any whitespace within the filenames. In any other case you may want so as to add a step to cite the names.
Put all of the information to be renamed in a folder and cd to that folder.
Extract the filenames to a brand new file:
ls -1 > ../oldnames.txt
Copy oldnames.txt to a brand new file ‘newnames.txt’:
cp ../oldnames.txt ../newnames.txt
Convert newnames.txt to conventional Chinese language within the GUI.
Mix the 2 units of names into a brand new file as columns:
lam -S ' ' ../oldnames.txt ../newnames.txt > ../rename.txt
Learn traces from names.txt one by one, and rename the corresponding file:
whereas learn line
do eval mv $line
performed < ../rename.txt
