[Nottingham] Re: Pesky ._ "files"

Joshua Lock incandescant at gmail.com
Thu Dec 7 12:28:16 GMT 2006


On 07/12/06, James Gibbon <jg at jamesgibbon.com> wrote:
> On Thu, 7 Dec 2006 02:25:21 +0000
> "Joshua Lock" <incandescant at gmail.com> wrote:
> > I have several (nested) folders in ~ with loads of ._ files in *none*
> > of which I need.
> > Can anyone help me out with the required voodoo to get rid?
> >
>
> Do you simply need to get rid of every single ._* file?
>
Indeed I do.

> Let's say you need to exterminate every file whose name starts with ._
> under a particular folder. cd to the folder, and at the bash prompt,
> type:
>
> find . -type f -name '._*' -exec rm -f {} \;
>
> .. you might want to list them first, to see what you'll be
> deleting:
>
> find . -type f -name '._*' -ls
>
> .. this assumes you have the necessary permission to delete said
> files, of course. It will dig right down into your nested subfolders,
> as far as necessary, and delete the lot. I've also assumed they are
> files' rather than directories (folders).

Thanks James, that was it!

And now it's in the list archives for next time I forget ...



More information about the Nottingham mailing list