ubuntu - Copy a certain file from a CPIO file to a different directory -


i trying copy single file .cpio file, different directory rather tree inside it. trully sure possible, teacher did it.

i have tried this:

# cpio -i -f backup.cpio sub1/sub2/example.php 

but doesn't extract file example want extracted. tried adding third parameter doesn't work. suggestions? oh, , i'm running ubuntu.

one way extract single file stdout , redirect file of choice:

cpio -i --to-stdout sub1/sub2/example.php < backup.cpio > new_filename.php 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -