Sponsored Content
Top Forums UNIX for Dummies Questions & Answers view gzipped files with name file.gz.$DATE on a Solaris box (without unzipping first) Post 302511585 by slashdotweenie on Thursday 7th of April 2011 06:07:20 AM
Old 04-07-2011
view gzipped files with name file.gz.$DATE on a Solaris box (without unzipping first)

Hi

Howto view gzipped files with name file.gz.$DATE on a Solaris box (without unzipping first)

Code:
$ ls -lrt
total 4477
-rwxrwxr-x   1 oracle      dba       569745 Apr  4 19:45 4_person2profileCon.txt.gz.04.04.11*
-rwxrwxr-x   1 oracle      dba         3783 Apr  4 19:45 3_profile2profileCon.txt.gz.04.04.11*
-rwxrwxr-x   1 oracle      dba        60759 Apr  4 19:45 2_profile2groupCon.txt.gz.04.04.11*
-rwxrwxr-x   1 oracle      dba        39246 Apr  4 19:45 1_createProfiles.txt.gz.04.04.11*
-rwxrwxr-x   1 oracle      dba       569751 Apr  5 19:45 4_person2profileCon.txt.gz.04.05.11*
-rwxrwxr-x   1 oracle      dba         3787 Apr  5 19:45 3_profile2profileCon.txt.gz.04.05.11*
-rwxrwxr-x   1 oracle      dba        60955 Apr  5 19:45 2_profile2groupCon.txt.gz.04.05.11*
-rwxrwxr-x   1 oracle      dba        39263 Apr  5 19:45 1_createProfiles.txt.gz.04.05.11*
-rwxr-xr-x   1 oracle      dba       569800 Apr  6 19:45 4_person2profileCon.txt.gz.04.06.11*
-rwxr-xr-x   1 oracle      dba         3792 Apr  6 19:45 3_profile2profileCon.txt.gz.04.06.11*
-rwxr-xr-x   1 oracle      dba        60805 Apr  6 19:45 2_profile2groupCon.txt.gz.04.06.11*
-rwxr-xr-x   1 oracle      dba        39276 Apr  6 19:45 1_createProfiles.txt.gz.04.06.11*

I tried:

Code:
$ gzip -d 1_createProfiles.txt.gz.04.06.11 | less
gzip: 1_createProfiles.txt.gz.04.06.11: unknown suffix -- ignored

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unzipping .zip file on HP and Solaris

I am transferring a large .zip file (20 GB) from an NT server to HP-UX and Solaris servers. Originally I tried to use info-zip's unzip, but I found out pretty quickly that it does not support files over 4GB. Any suggestions on how to work around this problem? Different decompression utility?... (9 Replies)
Discussion started by: dangral
9 Replies

2. Shell Programming and Scripting

script to view files based on date

I have a UNIX box where in files are created every 5 minutes. I need to write a shell script which will take in the date as parameter and return me all files created on that day. Also I will like it to show me only files which have a size greater than 0 i.e. non-empty files. how do I go abt this? I... (6 Replies)
Discussion started by: krahuliyer
6 Replies

3. Shell Programming and Scripting

Unzipping a file in Solaris - Issue with xls file

Hi, I have an excel file generated by system in windows. I am zipping it, transfering to unix and unzipping there. But i'm getting below output while unzipping. $ /usr/bin/unzip -a 123.zip -d . Archive: 123.zip inflating: ./123/Index.xls When i copy this unzipped xls file to... (0 Replies)
Discussion started by: ajaykumarb
0 Replies

4. Shell Programming and Scripting

How to view files from a specific date/day

I wan to view files in a directory of a specific date. For example a log directory has log files . I want to view the list of the files which were generated on 01-May-2011. Is there any option/proces to perform it?? (1 Reply)
Discussion started by: mady135
1 Replies

5. Solaris

Command to list or view the files in .pkg (solaris) and how to extract without installing

In Linux for .rpm we can list or view the files using the command rpm -qpl <file.rpm> and to extract, the command is rpm2cpio <file.rpm> | cpio -idvh I would like to know the commands which has same functionality as above for solaris ( .pkg) Thanks in Advance (5 Replies)
Discussion started by: frintocf
5 Replies

6. Shell Programming and Scripting

Finding a text file from a group of zip files without unzipping

HI , There are more than 100 zip files in a directory and i wanted to see if there is a max1157.txt file in any of the zip files without actually unzipping them. Could you please help. Thanks in Advance. Karthik. (6 Replies)
Discussion started by: karthikk0508
6 Replies

7. Windows & DOS: Issues & Discussions

Issue: Unzipping file containing files/folders with a similar name

Hi, I have a zip file created on a Linxux server that I need to extract on a Windows machine... The zip file containing folders with the same name but they each have a different case, one if camel case and the other is just capitalised. When I extract using 7zip, I get prompted if I want to... (3 Replies)
Discussion started by: muay_tb
3 Replies

8. UNIX for Dummies Questions & Answers

Unzipping a file which has multiple folders and each folder has the files with same name in it

Hi, I have a zipped file a.zip. This has got multiple folders in it say x and y. x contains a.txt and y contains a.txt. Is it possible to unzip this file and have the 2 files extracted and rename them to unique names. Thanks in advance. (1 Reply)
Discussion started by: arunkesi
1 Replies

9. UNIX for Advanced & Expert Users

Passing resulted string name of a gzipped file as an argument to another piped tool

Hi, I have a .pcap.gz file and I would like to initially gzip it and then pass the resulting .pcap filename as an argument to a piped tool; the right-hand tool is not standardized linux tool but a custom one that strictly requires the string name of a given .pcap file in order for the pcap file... (2 Replies)
Discussion started by: amarn
2 Replies

10. Solaris

Solaris View/Transfer Files Android Phone

I'm trying to sync/transfer files from my UNIX box and Android Phone and vice versa. I know that Android Phones show up seamlessly (mostly) in Linux given their incestuous relationship. Is there a way to do it in UNIX or more specifically in Solaris 11.3 (i86)?:confused: I haven't found one... (2 Replies)
Discussion started by: Nostradamus1973
2 Replies
DtSearchRetrieve(library call)											    DtSearchRetrieve(library call)

NAME
DtSearchRetrieve -- Return clear text of documents from DtSearch databases SYNOPSIS
#include <Dt/Search.h> int DtSearchRetrieve( char *dbname, DB_ADDR dba, char **cleartext, long *clearlen, int *fzkeyi); DESCRIPTION
DtSearchRetrieve retrieves the uncompressed document text of a specified DtSearch document listed in the DtSrResult list from a previous call to DtSearchQuery. It will be successful only in an AusText type database where the documents are stored directly in a database reposi- tory. ARGUMENTS
dbname Specifies which database the document is stored in. It can be any one of the database name strings returned from DtSearchInit or DtSearchReinit. If dbname is NULL, the first database name string is used. dba The database address of the desired record from the DtSrResult.dba field in a search results list. cleartext Specifies a pointer where a zero terminated C string containing the document text will be stored. The string is allocated storage that will be freed by the next call to this function. clearlen Specifies a pointer where the length of the cleartext string will be stored. fzkeyi This is a reserved argument. It should always be NULL. RETURN VALUE
DtSearchRetrieve returns DtSrOK as well as the cleartext string, when document retrieval is completely successful. It returns DtSrNOTAVAIL if the document text is not available from the database for whatever reason. Any other return code signifies failure and user messages on the MessageList explain why. Any API function can also return DtSrREINIT and the return codes for fatal engine errors at any time. SEE ALSO
dtsrcreate(1), DtSrAPI(3), DtSearchQuery(3), DtSearch(5) DtSearchRetrieve(library call)
All times are GMT -4. The time now is 10:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy