Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

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 
done 

transfer: logfilesplit*.gz 

On the receiving end: 

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

cat logfilesplit* > logfile.ext 

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

From: "John Malloy" <jomalloy at gmail.com> 
To: discuss at blu.org 
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? 

Thanks! 


John Malloy 
jomalloy at gmail.com 
_______________________________________________ 
Discuss mailing list 
Discuss at blu.org 
http://lists.blu.org/mailman/listinfo/discuss 




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 / webmaster@blu.org