Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] large log file transfer

>From memory, so there might be a typo or two 

Often gzip will reduce logfiles greatly in size. for that, all you need is: 

gzip -9 logfile.ext 

transfer: logfile.ext.gz 

on receiving end: 

gzip -d logfile.ext.gz 

Assuming you actually need to transfer in small chunks: 

split -10 logfile.ext logfilesplit 
for f in logfilesplit* ; do 
gzip -9 $f 

transfer: logfilesplit*.gz 

On the receiving end: 

for f in logfilesplit*.gz ; do 
gzip -d $f 

cat logfilesplit* > logfile.ext 

----- Original Message -----

From: "John Malloy" <jomalloy at> 
To: discuss at 
Sent: Tuesday, June 23, 2015 8:44:19 AM 
Subject: [Discuss] large log file transfer 

I have a log file (325MB) that I need to transfer from a restricted 
network, that I cannot plug a USB into. 

Is there an easy way to "split up" the log file into smaller chunks and Zip 
it to get it over the net? 


John Malloy 
jomalloy at 
Discuss mailing list 
Discuss at 

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /