schernic
7/3/2015 - 11:16 AM

Cut log file

Cut log file

sed '1,/2015-07-03 10:5/d;$d' catalina.out | tee cut-log

sed '1,/2015-07-03/d;/2015-07-03/,$d' catalina.out | tee cut-log


sed '1,/from this text/d;/to this text/,$d' logfile | tee outfile