By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,773 Members | 1,724 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,773 IT Pros & Developers. It's quick & easy.

tar file

P: 1
hi,
How to convert bz2 file into untar file.what is the syntax .
for example bib-9-9-2008-20-0-1.tar.bz2
Can any one help me.
Sep 10 '08 #1
Share this Question
Share on Google+
3 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
First, when you post an article and then have additional information, being the creator you can edit it and add / subtract to and from it. No need to create a second post as it clutters up the forum. I have deleted your duplicate thread.

Second, when trying to do something with Perl, it is always advisable to first search CPAN . That is where we all find the modules we need.

If you look, there are modules to undo zipped files and to also unpack tar files. All you have to do is search and you will find. If you have exhausted all of your avenues for figuring out how to do something, feel free to post here.

Once you have written code to do what you have said you want to do, if it has problems, post it here (enclosed in code tags please) and we will help you get it working.

Regards,

Jeff
Sep 10 '08 #2

P: 34
to untar the file 'bib-9-9-2008-20-0-1.tar.bz2 '

run the command :

bzip2 -d bib-9-9-2008-20-0-1.tar.bz2


then you will get bib-9-9-2008-20-0-1.tar

then run

tar -xvf bib-9-9-2008-20-0-1.tar
Sep 12 '08 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
to untar the file 'bib-9-9-2008-20-0-1.tar.bz2 '

run the command :

bzip2 -d bib-9-9-2008-20-0-1.tar.bz2


then you will get bib-9-9-2008-20-0-1.tar

then run

tar -xvf bib-9-9-2008-20-0-1.tar
Being that this is a Perl forum and not a *nix forum, don't you think they might have wanted a Perl solution to do this? See my response above.

Regards,

Jeff
Sep 12 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.