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