home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4837 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.8 KB  |  40 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!destroyer!gumby!yale!cs.yale.edu!not-for-mail
  3. From: A. Satish Pai <Pai-Satish@CS.Yale.Edu>
  4. Subject: Find and symbolic links
  5. Message-ID: <1epg9qINNfb8@OPAL.SYSTEMSX.CS.YALE.EDU>
  6. Lines: 28
  7. Sender: pai@cs.yale.edu
  8. Nntp-Posting-Host: opal.systemsx.cs.yale.edu
  9. Organization: Yale University Computer Science Dept., New Haven CT 06520, USA
  10. Date: Mon, 23 Nov 1992 02:39:54 GMT
  11.  
  12.  
  13. Hi, everybody!
  14.  
  15. Is there any workaround/trick/hack/shell-script that can be used to use find in
  16. such a way that it follows symbolic links and descends down them recursively?
  17.  
  18. I find it annoying that find doesn't follow links. No doubt there are good
  19. reasons for making it operate that way but at least there should have been an
  20. option to override that, IMHO. Why do I want to follow links? Out here, the
  21. "real" directory structure is some hugely complicated thing that only the
  22. sysadmins worry about; what users normally see (such as /usr/bin, /homes, etc.)
  23. are almost all links to something else. I really don't want to run find with
  24. arguments that look like /u6/old/tmp-sys/usr.bin when what I'm thinking of
  25. is (say) /usr/bin. Naturally, if I just specify the names I want, find will
  26. skip entire directories because something at the top happens to be a sym link.
  27.  
  28. Thanks for any help.
  29.  
  30. -Satish
  31.  
  32.  
  33. --
  34. -------------------------------------------------------------------------------
  35. Internet: Pai-Satish@CS.Yale.Edu                       | A. Satish Pai
  36. UUCP:     ...!{uunet,harvard,decvax,ucbvax}!yale!pai   |
  37. Bitnet:   Pai@YaleCS                                   | +1 203 432 1217 [Off.]
  38. Mail:     Box 2158, Yale Station, New Haven, CT 06520  | +1 203 776 7069 [Res.]
  39. -------------------------------------------------------------------------------
  40.