How to easily delete "@eaDir" files


Recommended Posts

Or your could simply move them from where ever they are to a folder. I do that to my cache drive so I can browse and delete.


find /mnt/disk1 -name "@eaDir" -exec mv {} /mnt/cache/destination \; 


Yes I do that to each disk at a time often just to have more control.

  • Like 2
Link to comment
  • 1 year later...
  • 4 years later...

I know this is a really old topic but I'm trying to go through this process now and using a variation of the mv cmd process that @kizer suggested....

i.e. something like this


find /mnt/user/Photos/2011/ -name "@eaDir" -exec mv {} /mnt/user/Photos/EAPhotos \; 


the problem is I have a LOT of @eaDir folders and the mv command fails because more than one folder named /@eaDir is trying to get moved to  /mnt/user/Photos/EAPhotos.  Does someone with better scripting knowledge than I do have a suggestion for how to make the end directory a little more dynamic so I don't have the folder conflicts and I can do this in one command instead of run, delete, run?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.