Question Locked

Combining FIND and MV together

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.