• Creator
  • #3937435

    Combining FIND and MV together

    by bhenry3 ·

    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?

You are posting a reply to: Combining FIND and MV together

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

Share your knowledge