How to open a file that is archived


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to open a file that is archived
# 1  
Old 03-09-2008
How to open a file that is archived

Hello,
1)Can anybody please tell me that how can i open a file that is archived.
Like say i have a file say 1.txt archived inside 1.tar.
2)So how can i open this file to perform operations on this file (1.txt) using "open" system call and perform other system calls like "read" and "write" ,but without extracting that file(1.txt).

Regards,
TANVIR
# 2  
Old 03-11-2008
Explore the options zcat, zmore, zgrep.

Hope this helps!

Thanks!
nua7
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Need Help with Archived UNIX/Linux IBM (UniVerse) Database

I have an old database that ran on UNIX/LINUX that was archived and stored years ago. We currently run on Windows and have no way to open/view this database or recover data. Does anyone have any experience or know how to recover? All I know is that it was a UniVerse IBM product. Thanks! (2 Replies)
Discussion started by: Chantelle
2 Replies

2. UNIX for Dummies Questions & Answers

Archived Emails in UNIX Executable Files

Hello, A while back someone"archived" my emails for me, so I didn't have to worry about my email account filling up with emails. I need to get back into those emails and view them. When I opent the folder it has several files. The largest being an "mbox", which I am assuming has all of... (3 Replies)
Discussion started by: shaffer1921
3 Replies

3. Shell Programming and Scripting

Newbie.. Find if a file exists and open, if not create the desired file..

Hey all, I'm brand new to script writing, I'm wanting to make a script that will ask for a file and then retrieve that file if it exists, and if it doesn't exist, create the file with the desired name, and I'm completely stuck.. so far.. #! bin/bash echo "Enter desired file" read "$file" if ... (5 Replies)
Discussion started by: Byrang
5 Replies

4. Solaris

Before I delete any file in Unix, How can I check no open file handle is pointing to that file?

I know how to check if any file has a unix process using a file by looking at 'lsof <fullpath/filename>' command. I think using lsof is very expensive. Also to make it accurate we need to inlcude fullpath of the file. Is there another command that can tell if a file has a truely active... (12 Replies)
Discussion started by: kchinnam
12 Replies

5. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

6. Programming

Some how the open(file,flag, acc) returns 0 and write to the screen, instead of the file ???

I am out of idea what to do to resolve the problem! I need to use the open(file, for.., access) function to write a file. Never have the situation like that: it is return 0 - zero. As a result all write(..) going to the screen! What the problem it could be? I do not even know... (2 Replies)
Discussion started by: alex_5161
2 Replies

7. Shell Programming and Scripting

Avoid files being archived

hi all, i want to write a shell script which can automatically touch my all files within a folder in an interval of 90 days ...so that i can avoid them being archived. I don't want to manually touch the all files instead i want an automated shell script to do this. Thanks in advance, Om (3 Replies)
Discussion started by: koti
3 Replies

8. Linux

Deleteing archived files

Hi, I need to remove files that are in archive directory and which are old. I can make use of find command to search for files which are older by number of days. But the problem is there are sub directories in directory 'archive' like 'sub1' 'sub2' 'sub3'. Now all files which are in... (4 Replies)
Discussion started by: ramu_indian
4 Replies

9. Shell Programming and Scripting

tar :: rename the file after archived

Hi, I am archived two files using tar. Then I tried to extract the file in Windows. But only one file extracted. Other file is NOT extracted as the UNIX file name NOT compatible with Windows platform (In my case semicolon operator included in file name). Is it possible to rename the file (... (1 Reply)
Discussion started by: thambi
1 Replies

10. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies
Login or Register to Ask a Question