Sponsored Content
Top Forums UNIX for Dummies Questions & Answers reading a zipped file without unzipping it? Post 302112717 by vgersh99 on Thursday 29th of March 2007 05:59:41 PM
Old 03-29-2007
either 'gzcat' or 'gunzip -c'
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

zipped or unzipped file

Is there a way you can tell if a file is still zipped or it's unzipped I have a file called ssss.zip and I would like to know if this file is still zipped or if it's unzipped? I'm on IBM AIX/RS6000 (3 Replies)
Discussion started by: ted
3 Replies

2. UNIX for Dummies Questions & Answers

sendind a zipped file via email

Hi, I was not sure if I can do this. Suppose I have a file under /tmp Suppose the file is called any_11_52.txt Fisrt QUESTION??? If I zip this file using gzip will the user be able to unzip it , if I send it as an attachment in an email. Secondly is there a command by which we can... (2 Replies)
Discussion started by: rooh
2 Replies

3. Shell Programming and Scripting

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it? using grep command.. Bit urgent.. pls..help me (2 Replies)
Discussion started by: senraj01
2 Replies

4. UNIX for Dummies Questions & Answers

how to check if file is zipped

I have a script that grabs files from directory , zips and moves them somewhere else. It works fine except the case when files it grabs are already zipped. Then it trys to zip it again which does not make sence. How can I check before zipping if file is already zipped? thanks in advance (3 Replies)
Discussion started by: arushunter
3 Replies

5. Shell Programming and Scripting

Greping from zipped files without unzipping

I have more than 500 gzipped files in a directory. I have one lookup file in the same directory with 200 key values. I need to get the name of the gzipped file which have any of these 200 key values. Here my criteria is do not unzip the files due to space constraint. Any suggestion? (3 Replies)
Discussion started by: kanu_kanu
3 Replies

6. UNIX for Dummies Questions & Answers

See the date of file after its been zipped and unzipped?

I have some log files that have been gzipped and then compressed using cpio. There are a number of log files that have been compressed to the one file. When I extract them the date of the file when doing an ls -la is today's date (the date I extracted them). Is there anyway to see the date... (3 Replies)
Discussion started by: Sepia
3 Replies

7. UNIX for Dummies Questions & Answers

Zipped tar file is corrupt

Hello, I am currently dumping 30-40 reports on a Unix folder located here /home/apps/reports/prode/excel I use K-shell to do this task. In that, I use the gzip command to compress these files. I want to be able to use a tar command to first load the entire directory into one file then gzip that... (2 Replies)
Discussion started by: Pramodini Rode
2 Replies

8. Solaris

How can I tell if a file is zipped or not?

SunOS xxxxxx 5.10 Generic_142900-15 sun4v sparc SUNW,T5240 We receive files that are sometimes zipped, but the file may not have the .gz or other extention that would indicated that the file is zipped. Is there a unix "test" command that I could use or something similar? Thanks in advance (7 Replies)
Discussion started by: Harleyrci
7 Replies

9. Shell Programming and Scripting

FTP'ing the zipped file

Hi, I need to have a shell script that FTP's a zipped file from a particular location. I have some path and inside that path i will have folders like x_timestamp and inside x_timestamp there may many folders based upon events like y_111,y_222,y_333.Inside each event there will be another... (3 Replies)
Discussion started by: weknowd
3 Replies

10. UNIX for Dummies Questions & Answers

[Solved] to view a zipped file

Hi, I'm having a file which doesn't have any extension like .gz or .tar But i belive it's a zipped file because it's a archive path, i tried to view the file through zcat but it's not working the below shown is the file name PCLI_INXSTATUS_DEFF_I2705541_110927014513 Thanks for the... (4 Replies)
Discussion started by: thelakbe
4 Replies
libcaca file IO(3caca)						      libcaca						    libcaca file IO(3caca)

NAME
libcaca file IO - Functions __extern caca_file_t * caca_file_open (char const *, const char *) Open a file for reading or writing. __extern int caca_file_close (caca_file_t *) Close a file handle. __extern uint64_t caca_file_tell (caca_file_t *) Return the position in a file handle. __extern size_t caca_file_read (caca_file_t *, void *, size_t) Read data from a file handle. __extern size_t caca_file_write (caca_file_t *, const void *, size_t) Write data to a file handle. __extern char * caca_file_gets (caca_file_t *, char *, int) Read a line from a file handle. __extern int caca_file_eof (caca_file_t *) Tell whether a file handle reached end of file. Detailed Description These functions allow to read and write files in a platform-independent way. Function Documentation __extern caca_file_t* caca_file_open (char const *path, const char *mode) Create a caca file handle for a file. If the file is zipped, it is decompressed on the fly. If an error occurs, NULL is returned and errno is set accordingly: o ENOSTS Function not implemented. o EINVAL File not found or permission denied. Parameters: path The file path mode The file open mode Returns: A file handle to path. Referenced by caca_import_canvas_from_file(). __extern int caca_file_close (caca_file_t *fp) Close and destroy the resources associated with a caca file handle. This function is a wrapper for fclose() or, if available, gzclose(). Parameters: fp The file handle Returns: The return value of fclose() or gzclose(). Referenced by caca_import_canvas_from_file(). __extern uint64_t caca_file_tell (caca_file_t *fp) Return the file handle position, in bytes. Parameters: fp The file handle Returns: The current offset in the file handle. __extern size_t caca_file_read (caca_file_t *fp, void *ptr, size_tsize) Read data from a file handle and copy them into the given buffer. Parameters: fp The file handle ptr The destination buffer size The number of bytes to read Returns: The number of bytes read Referenced by caca_import_canvas_from_file(). __extern size_t caca_file_write (caca_file_t *fp, const void *ptr, size_tsize) Write the contents of the given buffer to the file handle. Parameters: fp The file handle ptr The source buffer size The number of bytes to write Returns: The number of bytes written __extern char* caca_file_gets (caca_file_t *fp, char *s, intsize) Read one line of data from a file handle, up to one less than the given number of bytes. A trailing zero is appended to the data. Parameters: fp The file handle s The destination buffer size The maximum number of bytes to read Returns: The number of bytes read, including the trailing zero __extern int caca_file_eof (caca_file_t *fp) Return the end-of-file status of the file handle. This function is a wrapper for feof() or, if available, gzeof(). Parameters: fp The file handle Returns: 1 if EOF was reached, 0 otherwise Referenced by caca_import_canvas_from_file(). Author Generated automatically by Doxygen for libcaca from the source code. Version 0.99.beta18 Fri Apr 6 2012 libcaca file IO(3caca)
All times are GMT -4. The time now is 03:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy