Hi all
I have more than 1000 files in a folder and when ever i use a "compress" or "zcat" command it give error
/bin/zcat: Arg list too long. .
any solution for this :o (3 Replies)
say i have these many file in a directory named exam.
1)/exam/newfolder/link.txt.
2)/exam/newfolder1/
and i create a tar say exam.tar
well the problem is,
when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories.
on the... (2 Replies)
Hi
I am trying to extract a <filename>.tar.Z on a SLES machine using zcat.
The command I am using is
zcat <filename>.tar.Z | tar xf -
When I use the above I get the following message
tar: Read 7168 bytes from -
I think the message is benign because I see that my files where... (2 Replies)
Friends,
I need help with the following in UNIX.
Merge all csv files in one folder considering only 1 header row and ignoring header of all other files.
FYI - All files are in same format and contains same headers.
Thank you (4 Replies)
I created a backup script that emails all the admins when the backup is complete and attaches a log file of what what backed up. On occasion, something happens in which the backups stop working, I started "grep"ing around /var/log/syslog and I usually find the smoking gun. My goal is to zcat... (8 Replies)
Hi,
just i would like to know, how will be the response if you try to read a 40GB compressed file using zcat.
a)Uncompress the 40GB file and have it in the disk. use cat to view the steps.
b)Use zcat directly to view the compressed file?
What are the steps being occurred in step (b)?
Where... (3 Replies)
I have a tar file which i want to read and check some specific fields basis on which i want to get output.
Code
zcat samplefile.tar.gz | awk 'FNR==1 {++counter}
counter ==2 {BB=1;next}
substr($0,26,2) =="01") {next}
(substr($0,28,12) ~ "^") {next}
(substr($0,184,3) in BB) {next}
1
'... (7 Replies)
I have recently built a new server and patched Soalris 10 up tp latest bundle etc...
When I run a decompress using the format zcat fred.Z |tar -xvf - it runs at a very slow rate.
A similiar server which is less powerful runs over twice as quick.
Is there any work arounds to configure decompress... (4 Replies)
I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty.
I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies
LEARN ABOUT DEBIAN
ns_zlib
ns_zlib(3aolserver) AOLserver Zlib Extension ns_zlib(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
ns_zlib - Zlib compression support
SYNOPSIS
ns_zlib compress string
ns_zlib gunzip file
ns_zlib gzip string
ns_zlib gzipfile file
ns_zlib uncompress string
_________________________________________________________________DESCRIPTION
The ns_zlib command enables compressing and uncompressing of strings or files. The command is available if the nszlib.so module is loaded
into AOLserver or the libnszlib.so, nszlib.dll, or libnszlib.dylib dynamic library is loaded using the load command in a suitable tclsh
such as nstclsh.
ns_zlib compress string
This command compresses the given string and returns a Tcl byte array object with the compressed data.
ns_zlib gunzip file
This command uncompresses the contents of the given gzipped file and returns a string as the result.
ns_zlib gzipfile file
This command is similar to the gzip shell routines, compressing the given file into a new file with the .gz extension. If success-
ful, the original uncompressed file is deleted.
ns_zlib uncompress bytearray
This command takes a byte array object which includes compressed data and returns an uncompressed string object.
EXAMPLES
The following examples demonstrate compressing and uncompressing a string;
# Compress Tcl string
set test "This is test string"
set data [ns_zlib compress $test]
set test [ns_zlib uncompress $data]
--> returns "This is test string"
# Compress the string into gzip format
set gzip [ns_zlib gzip $test]
# Save as gzip file
set fd [open /tmp/test.gz w]
fconfigure $fd -translation binary -encoding binary
puts -nonewline $fd $gzip
close $fd
# Uncompress gzipped file
set test [ns_zlib gunzip /tmp/test.gz]
--> returns "This is test string"
SEE ALSO
ns_adp_ctl(n), load(n)
KEYWORDS
GZIP, compress, uncompress
AOLserver 4.5 ns_zlib(3aolserver)