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

  1. Newsgroups: comp.unix.sysv386
  2. Path: sparky!uunet!mcsun!sun4nl!ctisbv!pim
  3. From: pim@cti-software.nl (Pim Zandbergen)
  4. Subject: Re: cpio one file at a time?
  5. Message-ID: <1992Aug29.115831.24214@cti-software.nl>
  6. Organization: CTI Software BV, The Hague, The Netherlands
  7. References: <sells-270891232504@dialup-slip-1-3.gw.umn.edu>
  8. Date: Sat, 29 Aug 92 11:58:31 GMT
  9. Lines: 21
  10.  
  11. sells@cs.umn.edu (Chris Sells) writes:
  12.  
  13. >Is there a way to cpio one file at a time, process the file and continue?
  14. >For example, could I do something like this:
  15.  
  16. >cpio -oudBcv </dev/f1 |
  17. >while read file
  18. >do mv $file to /usr/$file
  19. >done
  20.  
  21. If all you want to do is read the file into another directory
  22. than where the cpio archive says it belongs,
  23. you could use pax with the -s option.
  24.  
  25. pax is /usr/lbin/pax on ISC and /usr/bin/pax on SCO.
  26. Its sources are available from many archives.
  27. -- 
  28. Pim Zandbergen                      domain : pim@cti-software.nl
  29. CTI Software BV                     uucp   : uunet!mcsun!sun4nl!ctisbv!pim
  30. Laan Copes van Cattenburch 70       phone  : +31 70 3542302
  31. 2585 GD The Hague, The Netherlands  fax    : +31 70 3512837
  32.