Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to open a file that is archived Post 302174431 by nua7 on Tuesday 11th of March 2008 05:51:16 AM
Old 03-11-2008
Explore the options zcat, zmore, zgrep.

Hope this helps!

Thanks!
nua7
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
lha(1)							      General Commands Manual							    lha(1)

NAME
lha - compression tool for .lzh archive files. SYNOPSIS
lha [-]{lvtxe[q{num}][finv]}[w=<dir>] archive_file [file...] DESCRIPTION
lha is a tool for extracting .lzh archive files. It also supports variants of the .lzh archive, such as .lzs and .pma. This version of the lha tool is part of Lhasa, a free implementation of the .lzh format. COMMAND SYNTAX
The lha tool has an unusual command syntax, compared to most other Unix commands. The first parameter to the program specifies the command to perform and all additional options. The second parameter specifies the path to the archive file to operate on. Following this is a list of wildcard patterns to match against the filenames of the archived files. The first character of the command parameter specifies the command to perform, which is one of the following: -l List contents of the specified archive. -v Verbosely list contents of the specified archive. -t Test the integrity of the specified archive: decompress its contents and check the CRC. -e or -x Extract archive. Files are extracted to the current working directory unless the 'w' option is specified. OPTIONS
The remainder of the command parameter is used to specify additional options: q[012] Quiet mode. Higher numbers suppress more output. Level 0 is normal operation. If no number is specified, full suppression (level 2) is used. The quiet option also turns on the force overwrite option ('f'). f Force overwrite of existing files: do not prompt. i Ignore paths of archived files: extract all archived files to the same directory, ignoring subdirectories. n Do not perform any actual operations: instead, perform a dry run of the requested operation and describe what would have been done on standard output. v Verbose mode: causes extra information to be written to standard output. w=dir Specify destination directory for extracting files. This must be the last option of the first parameter. SEE ALSO
unzip(1), tar(1), gzip(1), bzip2(1) HISTORY
The .lzh format originated with Kazuhiko Miki's MS-DOS archive tool, LArc, using the LZSS algorithm developed by Haruhiko Okumura, and the .lzs filename extension. The container format was reused for LHarc, by Haruyasu Yoshizaki (Yoshi), which used a new algorithm named LZHUF and the .lzh extension. In later versions, LHarc was renamed to LHA and extended with more effective compression algorithms. Versions of the LHA tool were later ported to various different operating systems, including the Amiga, Atari, MacOS, OS/2 and Unix. A tool for MSX-DOS named PMarc reused the container format with a new compression algorithm (.pma extension). The Unix version of the tool was developed by Masaru Oki, Nobutaka Watazaki and Tsugio Okamoto, but was released under a software license that does not conform to the Free Software or Open Source Definitions. Lhasa was developed as a drop-in replacement that is Free Software and Open Source. BUGS
The current version does not allow the creation of new archive files. Some obscure compression algorithms are not currently supported (-lh2-, -lh3-, -pm1-, -lx1-, -lhx-). AUTHOR
Lhasa was written and is maintained by Simon Howard. COPYRIGHT
Copyright (C) 2011, 2012 Simon Howard. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAM- AGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. lha(1)
All times are GMT -4. The time now is 10:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy