[wellylug] multidot filenames

andrej at paradise.net.nz andrej at paradise.net.nz
Wed Jun 1 12:25:15 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...

find ~  -iregex ".*/[a-zA-Z0-9]*\.[a-zA-Z0-9]*\.[a-zA-Z0-9]**"
If you have "funny" characters like " " or "$" in the 
filenames you'll obviously want to include them :}

Or
locate * | xargs -i basename {} | egrep -e ".*\..*\..*"



> Thanks
> E
> 
> 
> -- 
> Wellington Linux Users Group Mailing List:
> wellylug at lists.wellylug.org.nz
> To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
>  




More information about the wellylug mailing list