Combining FIND and MV together - TechRepublic
Question
October 2, 2021 at 06:26 PM
bhenry3

Combining FIND and MV together

by bhenry3 . Updated 4 years, 8 months ago

This command strings works but I don’t understand all of the component parts.

find . -iname “*sourdough*” -exec mv ‘{}’ ~/Documents/Recipe/Sourdough/ \;
I know what ‘find’ does but why the dot before iname? could ‘-exec’ be replaced with the pipe ‘|’? What does ‘{}’ do? And finally why ‘\;’ at the end of the string?

All Comments