Sponsored Content
Full Discussion: Size of compressed file
Top Forums UNIX for Dummies Questions & Answers Size of compressed file Post 302950118 by rbatte1 on Tuesday 21st of July 2015 07:03:31 AM
Old 07-21-2015
Depending on the tool used for compression, the above may do it, but you may also need to consider:-
Code:
zcat file.Z | wc


Robin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

renaming a compressed file to filename without .Z

In a shell script I would like to use a compressed file name, i.e. with suffix of .Z, as a file input $1. After the file in uncompressed, I would like to use the file name without the .Z . How do I do this? Thank you. (8 Replies)
Discussion started by: bruceps
8 Replies

2. Shell Programming and Scripting

Check if file compressed or not

Is there a way I can check if a file is comppressed or not? (Be it tar/gzip or compress). trying to write a generic housekeeping scrit that will delete files over 6 months old and compress any uncompressed files if less than 6 months old. But not sure if there is a clever way to check except for... (4 Replies)
Discussion started by: badg3r
4 Replies

3. UNIX for Advanced & Expert Users

Search first line of compressed file

I want to read a directory full of compressed files and move the file to another directory if it meets certain criteria. I only want to look at the first line of the compressed file and if I find the string, do the move. I am currently using the following: zgrep -R -L... (1 Reply)
Discussion started by: cbreiner
1 Replies

4. UNIX for Advanced & Expert Users

Is it possible to see the content of the compressed file?

How we can view the content of the file,if it compressed (or) Zipped ,without uncompress ? I have one file ,i compressed it,without uncompressing the file.Is it possible to see the content of the file? (2 Replies)
Discussion started by: bobprabhu
2 Replies

5. UNIX for Dummies Questions & Answers

compressed file

I compressed a file by using gzip command gzip <<xx>> filename changed to xx.gz How to view this xx.gz file. Any idea. Thanks in advance. (7 Replies)
Discussion started by: venkatesht
7 Replies

6. Shell Programming and Scripting

Find all tar and compressed file

Hi, I'm trying to find all tar and compressed files (say gzip). I'm having to assume that the tar and gzip files may or may not have the correct extension (.tar .gz .tgz etc). Any help appreciated (2 Replies)
Discussion started by: andyatit
2 Replies

7. Shell Programming and Scripting

Process a compressed file

Hi i have a filename.tar.bz2 and i have to parse it with a tool that doesn't support compressed files. I have to do it for many big files, so i can't decompress and then process. I'd like to do something like: tar -jxvf namefile.tar.bz2 | parsing_tool i mean analyze it directly,... (4 Replies)
Discussion started by: Dedalus
4 Replies

8. Shell Programming and Scripting

compressed file

i have a file 4d7a94d0.bbb.1292 when i do file 4d7a94d0.bbb.1292 the ouput is below 4d7a94d0.bbb.1292: gzip compressed data - deflate method and i run this command gunzip -c 4d7a94d0.bbb.1292 | awk '{gsub("\"","")}/I_ACCOUNT_ID/{print $2}' RS=":|;" FS="," i get... (3 Replies)
Discussion started by: blackzinga80
3 Replies

9. Shell Programming and Scripting

Is there any way to find the compressed size of a file without compressing it in linux

i need to backup a directory from one partition to another and and compress that directory after backing up, so i need to predict the compressed size of the directory with out actually compressing it, to check whether the space is available in the destination partition to accommodate the zipped... (2 Replies)
Discussion started by: Kesavan
2 Replies

10. Shell Programming and Scripting

Adding file to compressed tarfile

Hello all, I would like to add a file to a compressed (gzip) tarfile. Normally it won't be a Problem, if I would do it in several steps. But I do not want to have unnecessary files. So, in words: unzip the tarfile add a new file zip the tarfile What I tried: ... (3 Replies)
Discussion started by: API
3 Replies
PPPSTATS(8)						      System Manager's Manual						       PPPSTATS(8)

NAME
pppstats, slstats - print PPP/SLIP statistics SYNOPSIS
pppstats, slstats [ -a ] [ -v ] [ -r ] [ -z ] [ -c count ] [ -w secs ] [ interface ] DESCRIPTION
The pppstats or slstats utility reports PPP or SLIP related statistics at regular intervals for the specified PPP/SLIP interface. If the interface is unspecified, pppstats will default to ppp0 and slstats will default to sl0. The display is split horizontally into input and output sections containing columns of statistics describing the properties and volume of packets received and transmitted by the interface. The options are as follows: -a Display absolute values rather than deltas. With this option, all reports show statistics for the time since the link was initi- ated. Without this option, the second and subsequent reports show statistics for the time since the last report. -c count Repeat the display count times. If this option is not specified, the default repeat count is 1 if the -w option is not specified, otherwise infinity. -r Display additional statistics summarizing the compression ratio achieved by the packet compression algorithm in use. -v Display additional statistics relating to the performance of the Van Jacobson TCP header compression algorithm. -w wait Pause wait seconds between each display. If this option is not specified, the default interval is 5 seconds. -z Instead of the standard display, show statistics indicating the performance of the packet compression algorithm in use. The following fields are printed on the input side when the -z option is not used: IN The total number of bytes received by this interface. PACK The total number of packets received by this interface. VJCOMP The number of header-compressed TCP packets received by this interface. VJUNC The number of header-uncompressed TCP packets received by this interface. Not reported when the -r option is specified. VJERR The number of corrupted or bogus header-compressed TCP packets received by this interface. Not reported when the -r option is spec- ified. VJTOSS The number of VJ header-compressed TCP packets dropped on reception by this interface because of preceding errors. Only reported when the -v option is specified. NON-VJ The total number of non-TCP packets received by this interface. Only reported when the -v option is specified. RATIO The compression ratio achieved for received packets by the packet compression scheme in use, defined as the uncompressed size divided by the compressed size. Only reported when the -r option is specified. UBYTE The total number of bytes received, after decompression of compressed packets. Only reported when the -r option is specified. The following fields are printed on the output side: OUT The total number of bytes transmitted from this interface. PACK The total number of packets transmitted from this interface. VJCOMP The number of TCP packets transmitted from this interface with VJ-compressed TCP headers. VJUNC The number of TCP packets transmitted from this interface with VJ-uncompressed TCP headers. Not reported when the -r option is specified. NON-VJ The total number of non-TCP packets transmitted from this interface. Not reported when the -r option is specified. VJSRCH The number of searches for the cached header entry for a VJ header compressed TCP packet. Only reported when the -v option is spec- ified. VJMISS The number of failed searches for the cached header entry for a VJ header compressed TCP packet. Only reported when the -v option is specified. RATIO The compression ratio achieved for transmitted packets by the packet compression scheme in use, defined as the size before compres- sion divided by the compressed size. Only reported when the -r option is specified. UBYTE The total number of bytes to be transmitted, before packet compression is applied. Only reported when the -r option is specified. When the -z option is specified, pppstats instead displays the following fields, relating to the packet compression algorithm currently in use. This option is not supported by slstats and it always displays zeros. If packet compression is not in use, these fields will all display zeroes. The fields displayed on the input side are: COMPRESSED BYTE The number of bytes of compressed packets received. COMPRESSED PACK The number of compressed packets received. INCOMPRESSIBLE BYTE The number of bytes of incompressible packets (that is, those which were transmitted in uncompressed form) received. INCOMPRESSIBLE PACK The number of incompressible packets received. COMP RATIO The recent compression ratio for incoming packets, defined as the uncompressed size divided by the compressed size (including both compressible and incompressible packets). The fields displayed on the output side are: COMPRESSED BYTE The number of bytes of compressed packets transmitted. COMPRESSED PACK The number of compressed packets transmitted. INCOMPRESSIBLE BYTE The number of bytes of incompressible packets transmitted (that is, those which were transmitted in uncompressed form). INCOMPRESSIBLE PACK The number of incompressible packets transmitted. COMP RATIO The recent compression ratio for outgoing packets. SEE ALSO
pppd(8), slattach(8) 2 March 2006 PPPSTATS(8)
All times are GMT -4. The time now is 10:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy