LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-15-2003, 04:59 PM   #1
huangyanfeng
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
how to find file using wildcard?




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...
 
Old 10-15-2003, 05:27 PM   #2
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 30
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

Last edited by chup; 10-15-2003 at 05:42 PM.
 
Old 10-15-2003, 07:03 PM   #3
huangyanfeng
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Original Poster
Rep: Reputation: 0
many thanks!
 
Old 10-15-2003, 09:21 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
The -print option is redundant with current versions of find.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find excluding multiple directories with a wildcard pteigeler Linux - Software 1 09-02-2005 10:57 AM
ksh check if file exists (using wildcard) problem r18044 Linux - Newbie 5 02-22-2005 07:52 AM
Find File broken, need search utility, where does WineX install, KDE file roller? Ohmn Mandriva 6 07-05-2004 10:34 PM
where can I find grammar file and lex file of GNU c ? thinks Huiming Linux - Software 1 06-11-2004 07:38 AM
Subdomais Apache *wildcard CNAME - VirtualDocumentRoot - config file Rai Paul Linux - General 4 06-01-2003 08:19 PM


All times are GMT -5. The time now is 06:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration