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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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). |