[wellylug] multidot filenames
jfouhy at paradise.net.nz
jfouhy at paradise.net.nz
Wed Jun 1 11:55:16 NZST 2005
Quoting "E.Chalaron" <e.chalaron at xtra.co.nz>:
> Hi all
>
> I need to locate filenames with multidots on my system.
> file.ext1.ext2;
> Is there a way I can do that ? I tried find without much succes I must
> say...
locate '*.*.*' will almost do it... (it will match any file name with more than
one . in the file's path)
Hmm.
locate '*' | awk -F '/' '$NF ~ "\\..+\\."'
(change the + to a * if you want to allow files with two adjacent dots)
--
John.
More information about the wellylug
mailing list