cpio question
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Data Storage > cpio question




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    cpio question  
2hawks


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-19-05 01:46 AM

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






[ Post a follow-up to this message ]



    Re: cpio question  
Arne Joris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-25-05 10:47 PM

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.






[ Post a follow-up to this message ]



    Re: cpio question  
2hawks


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-05 01:46 AM

thanks very much






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:34 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register