tail -n <number of lines> <source> >> <destination>
E.g.:
tail -n 1000 mysql-error.log >> $(date '+%Y-%m-%d-%H-%M').log
unix.stackexchange.com/questions/275848#comment479299_275848
tail -n <number of lines> <source> >> <destination>
E.g.:
tail -n 1000 mysql-error.log >> $(date '+%Y-%m-%d-%H-%M').log
unix.stackexchange.com/questions/275848#comment479299_275848