Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Recursively Remove .DS_Store files in OS X (See related posts)

This shell alias will recursively remove all .DS_Store files from the current directory up.

alias rmdsstores='find ./ -type f | grep .DS_Store | xargs rm'

Comments on this post

Batzooh posts on Jan 15, 2008 at 11:11
Not very optimized !!.
Two pipes and 3 commands calls.

Here is a best way with only find command :
find . -name *.DS_Store -type f -exec rm {} \;

You need to create an account or log in to post comments to this site.


Click here to browse all 4834 code snippets

Related Posts