|
Archive::Cpio - module for manipulations of cpio archives |
Archive::Cpio - module for manipulations of cpio archives
use Archive::Cpio;
# simple example removing entry "foo"
while (my $e = Archive::Cpio::read_one(\*STDIN)) {
if ($e->{name} ne 'foo') {
Archive::Cpio::write_one(\*STDOUT, $e);
}
}
Archive::Cpio::write_trailer(\*STDOUT);
Archive::Cpio provides a few functions to read and write cpio files.
Returns a list of entries
Writes the entries and the trailer
Returns the next entry
Writes an entry (beware, a valid cpio needs a trailer using write_trailer)
Writes an entry (beware, a valid cpio needs a trailer using write_trailer)
Pascal Rigaux <pixel@mandriva.com>
|
Archive::Cpio - module for manipulations of cpio archives |