home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / sysv386 / 16589 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.5 KB

  1. Xref: sparky comp.unix.sysv386:16589 comp.unix.sys5.r4:542
  2. Newsgroups: comp.unix.sysv386,comp.unix.sys5.r4
  3. Path: sparky!uunet!walter!att-out!cbnewsj!dwex
  4. From: dwex@cbnewsj.cb.att.com (david.e.wexelblat)
  5. Subject: Re: tar problems
  6. Organization: AT&T
  7. Distribution: na
  8. Date: Wed, 18 Nov 1992 16:51:47 GMT
  9. Message-ID: <1992Nov18.165147.11627@cbnewsj.cb.att.com>
  10. References: <1992Nov12.164004.9850@netnews.whoi.edu> <1992Nov17.125259.1778@ncrcae.ColumbiaSC.NCR.COM> <1992Nov18.145047.16959@cbnews.cb.att.com>
  11. Lines: 26
  12.  
  13. In article <1992Nov18.145047.16959@cbnews.cb.att.com> adh@cbnews.cb.att.com (andrew.d.hay) writes:
  14. > In article <1992Nov17.125259.1778@ncrcae.ColumbiaSC.NCR.COM> Bo.Muldbak@ColumbiaSC.NCR.COM writes:
  15. > []
  16. > "    SVR4    ->    BSD    Problem, since SVR4 archives has directories
  17. > "                and are not using the silly '/' suffix.
  18. > "                Instead we are using the tar filetype field.
  19. > it just occurred to me --
  20. > if you're using find to generate the pathnames to tar, you can add the
  21. > -type f option to eliminate directories [i think...].
  22.  
  23. Umm...
  24.  
  25. I suggest '! -type d'.  '-type f' only gets regular files.  Symbolic
  26. links, for example, are not regular files.
  27.  
  28. Of course, how often do people combine 'find' with 'tar'?  Don't people
  29. usually just let 'tar' walk the tree itself?
  30.  
  31. --
  32. David Wexelblat <dwex@mtgzfs3.att.com>  (908) 957-5871
  33. AT&T Bell Laboratories, 200 Laurel Ave - 4B-421, Middletown, NJ  07748
  34.  
  35. "The meaning of life?  That's simple.  Try to be happy, try not to hurt
  36.  other people, and hope to fall in love."  -- Mallory Keaton
  37.