09-05-2008
uncompress a group of files
i have some 100's of files in the format .tar.gz. how to uncompress them in a single shot
i have sorted the files according to current date and now they reside in a dir called naveed1.
cd naveed1
ls -ltr
file1.tar.gz
file2.tar.gz
:
:
:
file100.tar.gz
how to uncompresse them in single shot in the current dir i.e. naveed1
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Are there any unix/linux tools that can uncompress the "pkzip" files from DOS env.
Thanks . (2 Replies)
Discussion started by: Wing m. Cheng
2 Replies
2. UNIX for Dummies Questions & Answers
I get a compressed file for linux and I want to uncompress it in Unix. Is that possible?
I try with te command uncompress but it didnīt work.
T.hanks (3 Replies)
Discussion started by: diegoe
3 Replies
3. Shell Programming and Scripting
Hi UNIX gurus,
the scenario is that i have written a script which takes as input a directory structure.
And after that a tar is made ,then zipped and FTP it to a server.But how do i uncompress it from my script as FTP doesnot support any uncompress command during FTP session.
I have to automate... (2 Replies)
Discussion started by: rahul26
2 Replies
4. HP-UX
Hi All,
is there any command to unzip the compressed files compressed using PKZIP on HP-UX. We dont have unzip. and gunzip or compress commands are not working. is there any other to do this?
Thank you very much for the help.
Regards,
Srinivas (3 Replies)
Discussion started by: srinivas_paluku
3 Replies
5. Shell Programming and Scripting
How can i list uncompress files and compress those and also vice versa
suppose im listing the compressed files as ls -ltr *.Z.
how can i list the uncompressed files using not *.Z. (1 Reply)
Discussion started by: laknar
1 Replies
6. Shell Programming and Scripting
I need a shell script to Uncompress untar all the files present in the directory (it should Uncompress an untar files present in its sub folders also)
In my work I get lots of tar files to untar and update the server, for this each time in need to type
Step1) Uncompress xyz1-3.tar.z... (2 Replies)
Discussion started by: arewe
2 Replies
7. Shell Programming and Scripting
i Have 150 tar.gz files and i need to uncompress and extract all the files from those 150 tar.gz and i will have 150 files on daily basis.
could any one help me out with the script to uncompress tar.gz files. (5 Replies)
Discussion started by: gaddamshashank
5 Replies
8. HP-UX
I have file with large size in HP-UX os. I need to compress on HP-UX and ftp to linux server and i need to uncompress the files. How can i do this? Any help is highly appreciated.. (3 Replies)
Discussion started by: govindts
3 Replies
9. Shell Programming and Scripting
Hi,
I need to uncompress sevral tar.gz files that are located insides sevral folders using a shell script.
Folder tree looks like this :
/folder/001
/folder/002
/folder/003 Inside each folder dossier (001,002,003) we can find 1 or several tar.gz files.
I've scripted something... (9 Replies)
Discussion started by: shellX
9 Replies
10. UNIX for Beginners Questions & Answers
I have two directories of files (new-config-files and old-config-files):
new-config-files/this-db/config.inc.php
new-config-files/that-db/config.inc.php
new-config-files/old-db/config.inc.php
new-config-files/new-db/config.inc.php
new-config-files/random-database/config.inc.php
etc.
... (4 Replies)
Discussion started by: spacegoose
4 Replies
LEARN ABOUT SUSE
git-tar-tree
GIT-TAR-TREE(1) Git Manual GIT-TAR-TREE(1)
NAME
git-tar-tree - Create a tar archive of the files in the named tree object
SYNOPSIS
git tar-tree [--remote=<repo>] <tree-ish> [ <base> ]
DESCRIPTION
THIS COMMAND IS DEPRECATED. Use git archive with --format=tar option instead (and move the <base> argument to --prefix=base/).
Creates a tar archive containing the tree structure for the named tree. When <base> is specified it is added as a leading path to the files
in the generated tar archive.
git tar-tree behaves differently when given a tree ID versus when given a commit ID or tag ID. In the first case the current time is used
as modification time of each file in the archive. In the latter case the commit time as recorded in the referenced commit object is used
instead. Additionally the commit ID is stored in a global extended pax header. It can be extracted using git get-tar-commit-id.
OPTIONS
<tree-ish>
The tree or commit to produce tar archive for. If it is the object name of a commit object.
<base>
Leading path to the files in the resulting tar archive.
--remote=<repo>
Instead of making a tar archive from local repository, retrieve a tar archive from a remote repository.
CONFIGURATION
tar.umask
This variable can be used to restrict the permission bits of tar archive entries. The default is 0002, which turns off the world write
bit. The special value "user" indicates that the archiving user's umask will be used instead. See umask(2) for details.
EXAMPLES
git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)
Create a tar archive that contains the contents of the latest commit on the current branch, and extracts it in /var/tmp/junk directory.
git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release.
git tar-tree v1.4.0^{tree} git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release, but without a global extended pax header.
git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar
Get a tarball v1.4.0 from example.com.
git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar
Put everything in the current head's Documentation/ directory into git-1.4.0-docs.tar, with the prefix git-docs/.
AUTHOR
Written by Rene Scharfe.
DOCUMENTATION
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org[1]>.
GIT
Part of the git(1) suite
NOTES
1. git@vger.kernel.org
mailto:git@vger.kernel.org
Git 1.7.1 07/05/2010 GIT-TAR-TREE(1)