[wellylug] multidot filenames
andrej at paradise.net.nz
andrej at paradise.net.nz
Wed Jun 1 13:46:00 NZST 2005
Quoting David Antliff <dave.antliff at paradise.net.nz>:
> > find ~ -iregex ".*/[a-zA-Z0-9]*\.[a-zA-Z0-9]*\.[a-zA-Z0-9]**"
> Does find not support exclusion classes? e.g [^.]
> [^.]* \. [^.]+ \. ( [^.]+ \. )* [^.]*
>
> or even tidier:
>
> [^.]* ( \. [^.]+ ){2,} [^.]*
>
>
> That might work - untested tho.
It does - but that will match a
/home/joebloggs/.Groupwise/.unknown_user
too, for instance, which is NOT what the OP wanted.
find ~ -iregex ".*/[^\./]*\.[^\./]+\.[^\./]*"
would work, though, thanks for pointing that out :)
More information about the wellylug
mailing list