Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system,comp.sys.mac.apps Subject: Re: "extra" files seen in VW infotainment system Date: 24 Mar 2015 15:19:07 GMT Organization: People for the Ethical Treatment of Pirates Lines: 32 Message-ID: References: X-Trace: individual.net lqKJgwJNHe1CmCgWN7WnagbWxX+2qlgrnTYaOzXgjujJ7rsFuV Cancel-Lock: sha1:N0i03W3rCPJXK9CxfBWL0LyHwOg= X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:72003 comp.sys.mac.apps:28350 On 2015-03-24, Jolly Roger wrote: > On 2015-03-24, Jolly Roger wrote: >> >> I have a file at ~/.alias that contains a bunch of aliases I have >> defined, including one to remove AppleDouble files (on one line): >> >> alias remove_appledoubles='find . -name ".AppleDouble" -print -exec rm >> -rf "{}" \;' > > I just realized I copied the wrong alias. Oops. The above command > looks for files named ".AppleDouble", which isn't what you want. > > This is what you want instead: > > alias remove_appledoubles='find . -name "._*" -print -exec rm -rf "{}" \;' > > Or without the alias: > > find . -name "._*" -print -exec rm -rf "{}" \; > > Sorry for the confusion! And if you want to test it to see which files it finds without actually deleting them, just take off the -exec portion like so: find . -name "._*" -print -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR