Friday, November 25, 2016

linux: move all file under folder A contain name *.cn to folder B

find A -type f -iname *.cn -exec mv --backup=numbered -t B {} +

Reference: How do I move files out of nested subdirectories into another folder in ubuntu? (Trying to strip off many subfolders)

No comments: