cpio question
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
cpio question

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System
Author Message
2hawks
Guest





Posted: Sat Nov 19, 2005 8:11 am    Post subject: cpio question Reply with quote

Hi,
How does the -E filename work with cpio? By example, I had an archive
with about 5500 files in it of which I only needed three hundred. I am
thinking that the command:

cpio -iv -E filename < /dev/st0

or similiar would extract only the files listed in 'filename'. Is this
the correct assumption? I have tried this and it did nothing. I am
guessing that my 'filename' is in an incorrect format. Last try it
looked like this:

/dir/filename
/dir/dirfilename
etc...

Any pointers someone can offer me. I am pretty sure it will be
something obvious that I am overlooking. Thanks.

Robert
Back to top
Arne Joris
Guest





Posted: Fri Nov 25, 2005 5:16 pm    Post subject: Re: cpio question Reply with quote

Your pattern file format is fine. It uses the shell globbing format,
giving a complete file path per line (terminated with newline) should
work.

You might want to use the '-d' flag to make it create any missing
parent directories though, your example would fail when the current
directory does not have a '/dir/' directory.
Back to top
2hawks
Guest





Posted: Tue Nov 29, 2005 7:45 am    Post subject: Re: cpio question Reply with quote

thanks very much
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Storage System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB