Sponsored Content
Top Forums UNIX for Dummies Questions & Answers compress and descompress file whit pack Post 44281 by jtapia on Wednesday 3rd of December 2003 09:18:33 AM
Old 12-03-2003
Question compress and descompress file whit pack

hi

i dont can traspassing file from unix sco compress whit pack or compress i dont can descompress whit other program... how i can do descompress that file in windows me.???

thank very much...


pd:sorry my inglish
 

10 More Discussions You Might Find Interesting

1. Solaris

connect whit Telnet without password

It's possible to connect whit Telnet (or rlogin) whithout password??? I must write a script (this script run on a windows machine), then after the connection on Unix machine, run a perl script and exit. I can know if an host can be consedered "Trusted" like SSH protocol? Thanks! (2 Replies)
Discussion started by: raffyTxT
2 Replies

2. UNIX for Dummies Questions & Answers

[help] Cant compress file

Anybody know what happened here? 162 lab2-36:~/try_direct/another> compress url.txt url.txt: -- file unchanged (8 Replies)
Discussion started by: endeavour1985
8 Replies

3. Shell Programming and Scripting

Compress a file before ftp

Hi, I have a script that ftp's to over 100 deifferent servers in turn, gets a specific file, renames it and drops it onto a local backup server. The files vary in size from 4mb to 150mb. I am within a secure intranet to security with ftp is not an issue. I want to auto compress the file... (1 Reply)
Discussion started by: MrMac
1 Replies

4. UNIX for Advanced & Expert Users

compress more than one file

hi, I need to compress a couple files in a directory.i tried using tar cvf filename1 filename2 but i am not able to open tar file. please suggest how to compress more than one file in to same file thanks in advance (2 Replies)
Discussion started by: prasee
2 Replies

5. Shell Programming and Scripting

unix script to takes the old data from a TXT file and compress them into new file

Hi, I am looking for the unix script which can takes the 2 month old data from a TXT file (there is one txt file in whiche messages are appended on daily basis) and compress them into new file.Please halp me out. (2 Replies)
Discussion started by: vpandey
2 Replies

6. Shell Programming and Scripting

Whats the problem whit my script???

I want to take the even-numbered lines from a file and put them in a separate file and the same thing with the odd-numbered lines. #!/bin/bash file=$1 awk ' { if ( NR % 2 == 0) { (( getline < "$file" ) > "even.txt" )} else { (( getline < "$file" ) > "odd.txt" )} } ' $file (4 Replies)
Discussion started by: cristi2008
4 Replies

7. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

8. Shell Programming and Scripting

SOS whit SED

Hello, I know how to get a solution of a filtering problem with AWK, but i need change default field separator by a regular expression. awk -F "xxx" What i want to do is take a stranza as a field, so the field separator must be a EMPTY line. Does anybody how to do that?? a example: ... (1 Reply)
Discussion started by: antuan
1 Replies

9. Shell Programming and Scripting

what is the difference between commands compress, pack and gzip

Are the above commands does the same job ? same functionaliy ? If so, why do we have three utilities for the same functinality. (1 Reply)
Discussion started by: frintocf
1 Replies

10. Shell Programming and Scripting

Compress every file

Dear Experts, I am new to this forum. Thank you for moderator to allow me to join. I have a question about automatic compression using sh and crontab on an application which runs on the Suse Linux Server 11 SP4. My question is how to compress every file in a directory into its own tar... (5 Replies)
Discussion started by: Steven_2975
5 Replies
pack(1) 						      General Commands Manual							   pack(1)

Name
       pack, pcat, unpack - compress and expand files

Syntax
       pack [ - ] [ -f ] name...

       pcat name...

       unpack name...

Description
       The  command stores the specified files in a compressed form.  Wherever possible (and useful), each input file name is replaced by a packed
       file name.z with the same access modes, access and modified dates, and owner as those of name.  The  -f	option	forces	packing  of  name.
       Using  this option you can cause an entire directory to be packed even if some of the files cannot benefit from it.  If is successful, name
       is removed.  Packed files can be restored to their original form using or

       The command uses Huffman (minimum redundancy) codes on a byte-by-byte basis.  If a hyphen (-) is used as an argument, an internal  flag	is
       set that causes the number of times each byte is used, its relative frequency, and the code for the byte to be printed on the standard out-
       put.  Additional occurrences of a hyphen (-) in place of name causes the internal flag to be set and reset.

       The amount of compression obtained depends on the size of the input file and the character frequency distribution.  Because a decoding tree
       forms  the first part of each .z file, it is usually not worthwhile to pack files smaller than three blocks, unless the character frequency
       distribution is skewed, which may occur with printer plots or pictures.

       Typically, text files are reduced to 60-75% of their original size.  Load modules, which use a larger character set and have a more uniform
       distribution of characters, show little compression.  The packed versions are about 90% of the original size.

       The command returns a value that is the number of files that it failed to compress.

       No packing occurs if one of the following is true:

       o    The file appears packed.

       o    The file name exceeds 12 characters.

       o    The file has links.

       o    The file is a directory.

       o    The file cannot be opened.

       o    No disk storage blocks can be saved by packing.

       o    A file called already exists.

       o    The .z file cannot be created.

       o    An I/O error occurred during processing.

       The  last  segment of the file name must not exceed 12 characters to allow space for the appended .z extension.	Directories cannot be com-
       pressed.

       The command does for packed files what does for ordinary files, except that can not be used as a filter.  The specified files are  unpacked
       and written to the standard output.  Thus, to view a packed file named name.z use:
       pcat name.z
       or just:
       pcat name
       To make an unpacked copy, say nnn, of a packed file named (without destroying name.z) use the command:
       pcat name >nnn
       The command returns the number of files it was unable to unpack.  Failure may occur if:

	      the file name (exclusive of the .z) has more than 12 characters;
	      the file cannot be opened;
	      the file does not appear to be the output of pack.

       The  command expands files created by For each file name specified in the command, a search is made for a file called name.z (or just name,
       if name ends in .z).  If this file appears to be a packed file, it is replaced by its expanded version.	The new file  has  the	.z  suffix
       stripped from its name, and has the same access modes, access and modification dates, and owner as those of the packed file.

       The  command returns a value that is the number of files it was unable to unpack.  Failure occurs for the same reasons that it occurs in as
       well as for the following:

	      a file with the unpacked name already exists;
	      if the unpacked file cannot be created.

       This command is present only for compatibility.	In general, the command runs faster and gives better compression.

See Also
       cat(1), compress(1)

																	   pack(1)
All times are GMT -4. The time now is 09:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy