home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5210 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!news.dell.com!uudell!pensoft!usenet
  2. From: stecz@pencom.com (John Steczkowski)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Help using find with wildcards
  5. Message-ID: <1992Dec31.142249.11102@pencom.com>
  6. Date: 31 Dec 92 14:22:49 GMT
  7. References: <1992Dec31.043445.2794@mnemosyne.cs.du.edu>
  8. Sender: usenet@pencom.com (Usenet Pseudo User)
  9. Reply-To: stecz@pencom.com
  10. Distribution: austin
  11. Organization: Pencom Software
  12. Lines: 27
  13.  
  14. In article <1992Dec31.043445.2794@mnemosyne.cs.du.edu> jefouger@nyx.cs.du.edu  
  15. (Jim  Fougeron) writes:
  16. > markn@ssd.comm.mot.com (Mark Nowak) writes:
  17. > >Anybody know how to find files, directories, etc. when you
  18. > >don't know the exact name of the file you're looking for.
  19. > >For example, I'm looking for file abcde in some directory
  20. > >tree, but the only characters I know for sure are bcd.  Is
  21. > >there a wat to use find to locate this file?
  22. > >I'm thinking of something along the lines of:
  23. > >find . -name *bcd* -print
  24. > try:    find . -name \*bcd\* -print
  25. > >but that doesn't work.
  26.  
  27. also try: find . -name "*bcd*" -print
  28.  
  29. That is how I normally do it, and it works on many different UNIXes.
  30.  
  31. --
  32. --
  33.   John Steczkowski                        stecz@pencom.com
  34.   "Achilles raised his spear, took careful aim, and hurled."
  35.                           from the Iliad
  36.