3 ms·
My favorite thing to do with 'dd' is to break up multi-gigabyte log files into, say, 500MB chunks, so I can easily view and search them in XEmacs (this is 'csh'
by ScottBurson 10y ago
My favorite thing to do with 'dd' is to break up multi-gigabyte log files into, say, 500MB chunks, so I can easily view and search them in XEmacs (this is 'csh' syntax as I use 'tcsh'):
foreach i (0 1 2 3 [...])
dd <big.log >big.log.$i bs=500m count=1 skip=$i
end
(XEmacs is very fast at reading large files but has a 1GB limit.)
- abbeyj 10y agoHow about using split -db 500M big.log big.log. ?
- ScottBurson 10y agoOh wow, I never knew about that. Thanks!
- deleted 10y ago[deleted]