LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to find file using wildcard? (https://www.linuxquestions.org/questions/linux-general-1/how-to-find-file-using-wildcard-104393/)

huangyanfeng 10-15-2003 04:59 PM

how to find file using wildcard?
 
:newbie:

Say, if i want to find files with word 'abc' in the name, how could I do?

I've tried find / -name %abd% but it seems not work...

chup 10-15-2003 05:27 PM

take a look at this page

[edit]although i still think you should read the page, here's a quick answer to your question:

Code:

find / -name '*abc*' -print
or
Code:

find / -print | grep -i abc

huangyanfeng 10-15-2003 07:03 PM

many thanks!

stickman 10-15-2003 09:21 PM

The -print option is redundant with current versions of find.


All times are GMT -5. The time now is 01:54 PM.