[X-Unix] Removing .ds_store ?

William H. Magill magill at mcgillsociety.org
Sun Nov 7 07:02:47 PST 2004


On 06 Nov, 2004, at 23:35, Richard wrote:

> Is there a way, perhaps to, remove .ds_store globally ?
> and have a cron setup for every 3 hours, or 4 hours..?

find . -name \.DS_Store

will list them...

find . -name \.DS_Store -exec rm {} \;

will remove them

Put that in a cron script.

However, if you have any significant number of files on the system you 
will cause a much greater impact scanning the system every few hours 
than the files will cause.

What do you think you are accomplishing by erasing them every couple of 
hours?


T.T.F.N.
William H. Magill
# Beige G3 - Rev A motherboard - 768 Meg
# Flat-panel iMac (2.1) 800MHz - Super Drive - 768 Meg
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg]- Tru64 5.1a
# XP1000  [Alpha EV6]
magill at mcgillsociety.org
magill at acm.org
magill at mac.com
whmagill at gmail.com




More information about the X-Unix mailing list