<XML><Employee><firstname></firstname><lastname></lastname></Employee><Employee><firstname></firstname><lastname></lastname></Employee><Employee><firstname></firstname><lastname></lastname></Employee><Employee><firstname></firstname><lastname></lastname></Employee><company><companyname></companyname><address></address></company><XML>We have a very big XML file with above patterns containing around 40k records, We wanted to copy data to another from 20k  occurrence to 30k th  occurrenceKindly help us the same, the wc -l showing only 50 lines. But the number of records has more than 40k.Thanks in advance.
Big XML - copy data from nth Occurrences to another file
linux;shell;sed;awk;wc