Pages

Copy multiple files with different names (res to unres)

Change directory to where you have the original files.

Then test with the following command line,

for i in *_original.*;do echo cp -p "$i" "${i/_original./_copy.}";done
and if it looks good, remove echo and do the copying,

for i in *_original.*;do cp -p "$i" "${i/_original./_copy.}";done


Reference
https://askubuntu.com/a/1045000/465828



No comments:

Post a Comment