mass renaming
find (maxdepth, regex) + perl + xargs + mv
- do below without
mv
first to check io - then execute mass rename with
mv
find . -maxdepth 1 -type f
-regex ".\/.*something.*\.txt" |
perl -pe 'print $_; s/.\/find/.\/replace/' |
xargs -n2
mv
find + exec mv
- more efficient, but can’t check io
find path_A -name '*AAA*' -exec mv -t path_B {} +