home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / sysv386 / 13761 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.8 KB  |  48 lines

  1. Newsgroups: comp.unix.sysv386
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cs.indiana.edu!umn.edu!dialup-slip-1-31.gw.umn.edu!user
  3. From: sells@cs.umn.edu (Chris Sells)
  4. Subject: Re: cpio one file at a time?
  5. Message-ID: <sells-290891105149@dialup-slip-1-31.gw.umn.edu>
  6. Followup-To: comp.unix.sysv386
  7. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  8. Nntp-Posting-Host: dialup-slip-1-31.gw.umn.edu
  9. Organization: Spanlink Communications
  10. References: <sells-270891232504@dialup-slip-1-3.gw.umn.edu> <1992Aug29.115831.24214@cti-software.nl>
  11. Date: Sat, 29 Aug 1992 15:51:29 GMT
  12. Lines: 34
  13.  
  14. In article <1992Aug29.115831.24214@cti-software.nl>, pim@cti-software.nl
  15. (Pim Zandbergen) wrote:
  16. > sells@cs.umn.edu (Chris Sells) writes:
  17. > >Is there a way to cpio one file at a time, process the file and continue?
  18. > >For example, could I do something like this:
  19. > >cpio -oudBcv </dev/f1 |
  20. > >while read file
  21. > >do mv $file to /usr/$file
  22. > >done
  23. > If all you want to do is read the file into another directory
  24. > than where the cpio archive says it belongs,
  25. > you could use pax with the -s option.
  26. > pax is /usr/lbin/pax on ISC and /usr/bin/pax on SCO.
  27. > Its sources are available from many archives.
  28. > -- 
  29. > Pim Zandbergen                      domain : pim@cti-software.nl
  30. > CTI Software BV                     uucp   : uunet!mcsun!sun4nl!ctisbv!pim
  31. > Laan Copes van Cattenburch 70       phone  : +31 70 3542302
  32. > 2585 GD The Hague, The Netherlands  fax    : +31 70 3512837
  33.  
  34. The 'mv' was only an example. I'll be performing multiple operations on
  35. each file and I need to be able to do it before the next file is loaded.
  36. BTW, what's pax?
  37.  
  38. +-------------------------+
  39. | Chris Sells             |
  40. | Spanlink Communications |
  41. | sells@cs.umn.edu        |
  42. +-------------------------+
  43.