home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sysv386
- 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
- From: sells@cs.umn.edu (Chris Sells)
- Subject: Re: cpio one file at a time?
- Message-ID: <sells-290891105149@dialup-slip-1-31.gw.umn.edu>
- Followup-To: comp.unix.sysv386
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: dialup-slip-1-31.gw.umn.edu
- Organization: Spanlink Communications
- References: <sells-270891232504@dialup-slip-1-3.gw.umn.edu> <1992Aug29.115831.24214@cti-software.nl>
- Date: Sat, 29 Aug 1992 15:51:29 GMT
- Lines: 34
-
- In article <1992Aug29.115831.24214@cti-software.nl>, pim@cti-software.nl
- (Pim Zandbergen) wrote:
- >
- > 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
-
- The 'mv' was only an example. I'll be performing multiple operations on
- each file and I need to be able to do it before the next file is loaded.
- BTW, what's pax?
-
- +-------------------------+
- | Chris Sells |
- | Spanlink Communications |
- | sells@cs.umn.edu |
- +-------------------------+
-