Hi experts,
I have thousands of file (data file and Gziped file) in same directory like below--
bash-2.05$ pwd
/home/mmc
bash-2.05$ file PP023149200709270546
TT023149200709270546: gzip compressed data - deflate method
bash-2.05$ file PP027443200711242320
TT027443200711242320: ... (10 Replies)
I want to gzip a file and append the creation date to the end of the file. How can I accomplish this task. Basically they are log files which need a creation date stamp appended to make sure they do not overwrite other log files.
-jack (3 Replies)
Guys,
I just want to know the difference in following (core difference)
zcat a.gz b.gz c.gz |gzip >d.gz
And
zcat a.gz >>d.gz
zcat b.gz >>d.gz
zcat c.gz >>d.gz
do we have 3 gzip header in 1st and only one in second case.
please let me know this in detail
Thanks,... (2 Replies)
Hi all...
I have the following code:
FILE *fp = popen(" gzip -dc /somemount/somefile.gz", "r");
while(fgets(buffer, 1024, fp))
{
some code....
}
"/somemount" is a mount of some network drive. Sometimes error occurs in while loop - I can see the following "Input/Output error"... (4 Replies)
I want gzip of a file in the same folder where it is kept now
$filename = '/var/dev/test.txt'
/opt/home/>> gzip -c $filename > test.txt.gz
however command creates it in the folder in /opt/home/
How to gzip a file in the same directory where it is now , no matter from where we execute and also... (2 Replies)
Dear community,
I've a continuos tcpdump on redhat that close the dumped file every 100000 captured packets.
To avoid disk full I would like to gzip the closed *.cap file. But how can I check if the file is currently opened by tcpdump and skip it from gzip?
Thanks!
EDIT: Just to post an... (9 Replies)
Hi,
Below is the description of my problem.
I am trying to loop through the below file names sitting in the file - FileNames.txt, and trying to decompress them
FileNames.txt
20150408_MGAC_.txt.gz
20150408_MGCC_.txt.gz
20150408_MGSH__.txt.gz
20150408_MGSL__.txt.gz
... (6 Replies)
Hi all,
I am calling Temp.sh and it is has simple line
$gpath=`which gzip`
$gpath $FilePath/My_temp.log
if I run this script, logging to server then its works fine. But when I send this script over the SSH it does not work at it. gzip is command is not execute.
I am using
gzip 1.6... (2 Replies)
Hello,
I am trying to send a gzip file on email using below command but the zipped file received on email is corrupt.
mailsend -smtp $smtpip -content-type 'application/x-gzip' -mime-type "application/x-gzip" -t $receiver -f $sender -sub "$subject" -M "$MSG" -attach $file
file name is ... (1 Reply)
Discussion started by: tushar.modgil
1 Replies
LEARN ABOUT DEBIAN
mongofiles
MONGOFILES(1) Mongo Database MONGOFILES(1)NAME
mongofiles - a simple GridFS interface
SYNOPSIS
mongofiles [OPTIONS]
DESCRIPTION
mongofiles is used to list, get, and insert files in the database.
EXAMPLES
mongofiles list
lists files in test.fs.files
mongofiles put README.txt
inserts the file README.txt into the collection test.fs.files
mongofiles get photo.jpg
retrieves photo.jpg from test.fs.files and saves it locally
OPTIONS --help show usage information
-h, --host HOST
mongo host to which to connect
-d, --db DB
database to use (default DB=test)
-c, --collection COLLECTION (default COLLECTION=fs.files)
collection to use
--command [list|search|put|get]
execute a command
--file FILE
filename for get or put
list list all files. takes an optional filename. the file has to start with the filename
search search all files for something that contains the string
COPYRIGHT
Copyright 2007-2009 10gen
SEE ALSO
For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.
AUTHOR
Kristina Chodorow
10gen June 2009 MONGOFILES(1)