Re: Finding files by Extention in a CLI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Howarth wrote:
H. Streit wrote:

Okay, so I've just copied over a bunch of files and I want to find all .com/.COM/.Com files...
I thought "find . -print|grep -i ".com" would work, tried a few variants, but I know I'm doing something wrong...any takers?


$ find . -name '*.[Cc][Oo][Mm]' -print

My excuse for not using the vastly superior "find . -iname '*.com'" is... I didn't know about it! I use HP-UX a lot at work and the HP-UX version of "find" doesn't have the -iname option.


You learn something every day on this list.

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux