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


 
Thread Tools Search this Thread
Operating Systems Solaris How can I tell if a file is zipped or not?
# 8  
Old 04-27-2011
If you're interested in more than whether or not the exit status was 0, then, sure, using a case statement with $? is best.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

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

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

4. Solaris

Read zipped log file

If we have a big zipped log file, how can we look for a specific string in this zipped log file without unzipping it? Thanks, (2 Replies)
Discussion started by: Pouchie1
2 Replies

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

6. UNIX for Dummies Questions & Answers

reading a zipped file without unzipping it?

Dear all, I would like to ask how i can read a zipped file (file.gz) without actually unzipping it? i think there is a way to do so but i can't remember it.. can anyone help? thanks in advance.. (1 Reply)
Discussion started by: marwan
1 Replies

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

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

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

10. 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
Login or Register to Ask a Question
ecppll(1)							Tntnet users guide							 ecppll(1)

NAME
ecppll - language-linker for ecpp SYNOPSIS
ecppll [-I dir] [-F] [-o output-filename] ecpp-filename [translated-data] DESCRIPTION
Ecppll is the language-linker for ecpp. This program combines the data of a ecpp-file with translated phrases from a source-file and gen- erates a data-file used by tntnet to look up translated data. The translated data file must contain the original phrase and the translated version separated by tab line by line. To generate a language file the generated files of all components of a component-library must be zipped. The resulting zip-file must have the same basename as the component-library and the language-code as the extension. Tntnet tries to find the langage library by first appending the value of the query parameter LANG to the name of the componentlibrary. If the file is not found, the environment-variable LANG is used. If that is neither found, the default data from the original component is used. OPTIONS
-F Fail on warning. If a phrase is not found in the language-data or in language-data is a phrase not used it the ecpp-file, ecppll warns about it to standard output. If this flag is set, ecppll returns a non-zero return-code. -I dir Search include-files in directory. This option can be passed multiple times. All specified directories are searched in turn for include-files. -o filename Specify output filename AUTHOR
This manual page was written by Tommi Makitalo <tommi@tntnet.org>. SEE ALSO
tntnet(1), ecpp(7), ecppl(1) Tntnet 2006-08-26 ecppll(1)