On Nov 5, 4:20 am, Barry Margolin <bar...@alum.mit.edu> wrote:
> In article <k76io1$v7...@news.xmission.com>,I tried this but still cant get it to work, by example I want to
> gaze...@shell.xmission.com (Kenny McCormack) wrote:
> > In article <barmar-18FAF5.15094004112...@news.eternal-september.org>,
> > Oopsie!
> > From "man gzip":
> > ADVANCED USAGE
> > gzip -c file1 > foo.gz
> > Then
> > gunzip -c foo
> > is equivalent to
> > cat file1 file2
> > Whether this works with tar and/or cpio (or any other archiving format) is,
> > >The fact that it contains a cpio archive is irrelevant -- this is just
> > Actually, as you now see, it does matter.
> Oops, sorry.
> So the question then is whether you can append one cpio archive onto
> ( find test | cpio -o; find test1 | cpio ) | gzip -c
archive all files in dir1, but only directories in dir2 to the
# find . | sort
# ( find dir1 | cpio -ov; find dir2 -type d | cpio -ov ) | gzip -c > /
# gzip -dc /var/tmp/testarchive.cpio.gz | cpio -it
As we see only dir1 was archived, unfortunately despite many tries I
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.