Question
-
Topic
-
Combining FIND and MV together
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 Answers
Share your knowledge
Answer This