Xref: utzoo comp.sources.d:2248 comp.unix.questions:7461
Path: utzoo!dciem!nrcaer!scs!spl1!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!mandrill!gatech!udel!rochester!pt.cs.cmu.edu!cadre!pitt!h
From: hoffman@pitt.UUCP (Bob Hoffman)
Newsgroups: comp.sources.d,comp.unix.questions
Subject: Re: cpio/afio writing directories?
Message-ID: <3486@pitt.UUCP>
Date: 31 May 88 19:55:34 GMT
Article-I.D.: pitt.3486
References: <23@libove.UUCP>
Reply-To: hoffman@vax.cs.pittsburgh.edu.UUCP (Bob Hoffman)
Followup-To: comp.sources.d
Distribution: comp
Organization: Univ. of Pittsburgh Computer Science
Lines: 24

In article <23@libove.UUCP> root@libove.UUCP (The Super User) writes:
>... it seems that cpio/afio, unlike tar, require real file names,
>not just directory names...

Right.  Tar knows how to traverse directories; afio does not.  Afio
wants a complete path to each file.  An excerpt from the afio manual page:

     With -o, reads pathnames from the standard input and writes
     an archive.

>My question: How do I tell afio/cpio that 
>
>% echo '/x /y /z' | afio -o
>
>means /x /y /z and all subfiles also?

Echo is not what you want.  Use this:

% find /x /y /z -print | afio -o

	---Bob.

-- 
Bob Hoffman, N3CVL       {allegra, bellcore, cadre, idis, psuvax1}!pitt!hoffman
Pitt Computer Science    hoffman@vax.cs.pittsburgh.edu