read file from tar.gz archive


 
Thread Tools Search this Thread
Top Forums Programming read file from tar.gz archive
# 8  
Old 06-13-2003
Download zlib.

http://www.gzip.org/zlib/

There is a directory "untgz" containing a C file for reading/extracting gzipped tarballs which uses zlib.

I don't know whether it works or not, however.

Last edited by cbkihong; 06-13-2003 at 12:26 PM..
# 9  
Old 06-13-2003
Hi!!!...
I already know why i couldnt....
This is because my kind the unix that i am using doesnt' have it kind of library (gzip).....

I already could uncompress it file.tar.gz in other machine....thanks any way.....Smilie

gzip -d file
tar -xvf file

Best regars,
Mary
# 10  
Old 05-20-2009
Java tar libraries?

Does anyone know of a java library for manipulating modern tar file formats (e.g., Posix.1 1988/2001, Gnu tar, etc.)? I tried using Apache's tar classes from the Ant project, but they don't support large (>8Gb) tar entries). Project time constraints are pushing me to look for an out-of-the-box solution. Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TAR Error - file changed as we read it

Hi All, I am getting the above error when I execute the following in a shell script called by Cron. tar -cvf ${WORKING_BACKUP_ROOT}/${TAR_ARCHIVE_FILE} . >/${BACKUP_ROOT}/${ARCHIVE_LOG} if then echo "`date` : ERROR occurred on creating tar file" ... (1 Reply)
Discussion started by: daveu7
1 Replies

2. Linux

tar archive

I have made tar archive of my system.. How can I make that tar archive to be bootable.. simply to install new linux from the archived tar file.. thanks in advance (8 Replies)
Discussion started by: Vit0_Corleone
8 Replies

3. Shell Programming and Scripting

How to read the content of the particular file from tar.Z without extracting?

Hi All, I want to read the content of the particular file from tar.Z without extracting. aaa.tar.Z contains a file called one.txt, I want to read the content of the one.txt without extracting. Please help me to read the content of it. Regards, Kalai. (12 Replies)
Discussion started by: kalpeer
12 Replies

4. Shell Programming and Scripting

Read specific file from a zip archive without extracting

Hi All, I would like to extract specific file from a zip archive. I have a zip archive "sample.zip". sample.zip contains few text files and images... text1.txt, text2.txt, pic.jpg etc... I need to read specific file "text2.txt" from "sample.zip" WITHOUT EXTRACTING the zip file. ... (4 Replies)
Discussion started by: sridharg
4 Replies

5. Shell Programming and Scripting

Tar archive issue

Hi, I make a tar archive: tar -czvf /path_to/cucu.tar.gz /path/dir_to_archive/ In the archive the /path/dir_to_archive/ is maintained for every file. I need that the archive to be made without the /path/dir_to_archive/ to contain only the files in /path/dir_to_archive/. Thanks,... (4 Replies)
Discussion started by: potro
4 Replies

6. UNIX for Dummies Questions & Answers

Extracting from a tar archive file

Can I extract files from an archive file (tar), where the filename includes the full directory path, to a different directory? For example the archive files may have a filename of /SrcFiles/XXX/filename.dat and I want to extract it to /SrcFiles/YYY/filename.dat. Since the archive file was... (1 Reply)
Discussion started by: nmalencia
1 Replies

7. UNIX for Dummies Questions & Answers

Q: tar archive help

hey how do you create a archive and add file to an existing archive. i keep getting an error: dir/#: No such file or directory currently using tar -cvfu name.tar files files searching from a word document each line having different file extention. Thanks in advance (1 Reply)
Discussion started by: nookie
1 Replies

8. UNIX for Dummies Questions & Answers

Archive (tar)

Hi, I want to archive below directories ex: /home/oracle/ddd0 /home/oracle/ddd1 /home/oracle/ddd2 I want a command(tar) which will let me archive the above directories excluding *.dmp(dump files), *.log(log files) in those directories. So the archived file doesn't have... (4 Replies)
Discussion started by: dreams5617
4 Replies

9. Shell Programming and Scripting

read list of filenames from text file, archive, and remove

I posted a week ago regarding this scripting question, but I need to revisit and have a few more questions answered.. User cfajohnson was extremely helpful with the archive script, but clarification on my part is needed to help steer the answer in a direction that works in this particular... (5 Replies)
Discussion started by: fxvisions
5 Replies

10. Shell Programming and Scripting

Read from file then purge or archive.

Hi All, I have a root directory /tmp and I want to purge files or archive files in its subsequent subfolders.I listed the path of files I want to purge(archive) and the #of days. (purge) DAYS PATH 7 /tmp/arsenal/* 5 /tmp/chelsea/* (archive? the same as above but different folders... (15 Replies)
Discussion started by: kayarsenal
15 Replies
Login or Register to Ask a Question