Working on Oracle ERP and FMW projects and automating them on all cloud technologies.
tail -10000 filename.log > filename_tail.log
head -10000 filename.log > filename_head.log
and then
we can give
> filename.log