Search code examples
linuxfilemv

Linux move files from dir to dir by name mask


I am trying to move all files with names starts with SML from directory to another. Tried with

find /var/.../Images/ -name SML\* mv /var/.../Images/Small but doesnt work


Solution

  • try find /var/.../Images/ -name SML\* -exec mv {} /var/.../Images/Small/ \;