(re)moving lots of file containing a similar pattern

  • I use ownCloud as a remplacement of dropbox, but I had unfortunately lots of conflicts files (on client and server)

  • these contain the _conflict- pattern, so a solution is to move all of them to a backup folder:

    cd /share/DriveOne/Web/owncloud/data/admin/files
    find . -name *_conflict-* -exec mv {} /share/Backups/backups/duplicate-photos/ \;


Comments powered by Disqus