Unix Technical Forum

Find command

This is a discussion on Find command within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I wanna find some files in solaris 10. I don't remember full name of them so I wanna look ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 08:59 AM
SauDoi
 
Posts: n/a
Default Find command

I wanna find some files in solaris 10. I don't remember full name of
them so I wanna look for all files which have "abc" (example) in their
name. How can I do?

I tried this command but it only show me the file name match exactly
with my pattern
#find / -name abc -print

I also read the man pages but not clear

Thx in advance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 08:59 AM
Oscar del Rio
 
Posts: n/a
Default Re: Find command

SauDoi wrote:
> I wanna find some files in solaris 10. I don't remember full name of
> them so I wanna look for all files which have "abc" (example) in their
> name. How can I do?
>
> I tried this command but it only show me the file name match exactly
> with my pattern
> #find / -name abc -print



find /directory -name '*abc*'

use quotes in '*abc*' and try not to start the search in / but
in specific directories and/or use other options to prevent it
from going into network mounts, special directories, etc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 08:59 AM
Dave
 
Posts: n/a
Default Re: Find command

SauDoi wrote:
> I wanna find some files in solaris 10. I don't remember full name of
> them so I wanna look for all files which have "abc" (example) in their
> name. How can I do?
>
> I tried this command but it only show me the file name match exactly
> with my pattern
> #find / -name abc -print
>
> I also read the man pages but not clear
>
> Thx in advance
>


find / -name '*abc*' -print

(in practice you can omit the -print on modern versions of Solaris, but
I belive it is not so portable without that option).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 08:59 AM
SauDoi
 
Posts: n/a
Default Re: Find command

Okay, Thanks all. It work now. I have to put *name in to the quote '
...... '. ;-)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:12 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com