Example 4 – Every 5 lines with 3 header lines

Input document

document created 2021-05-24 by UserName
year,sector,class,variable1,data_value,flag
------------------------------------------------------------
2009,Central government,Total,Environmental protection,1.2,R
2010,Central government,Total,Environmental protection,1.2,R
2011,Central government,Total,Environmental protection,1.1,R
2012,Central government,Total,Environmental protection,1.1,R
2013,Central government,Total,Environmental protection,1.2,R
2014,Central government,Total,Environmental protection,1.1,R
2015,Central government,Total,Environmental protection,1.2,P
2016,Central government,Total,Environmental protection,1.2,P
2017,Central government,Total,Environmental protection,408,R

Output document 1

document created 2021-05-24 by UserName
year,sector,class,variable1,data_value,flag
------------------------------------------------------------
2009,Central government,Total,Environmental protection,1.2,R
2010,Central government,Total,Environmental protection,1.2,R
2011,Central government,Total,Environmental protection,1.1,R
2012,Central government,Total,Environmental protection,1.1,R
2013,Central government,Total,Environmental protection,1.2,R

Output document 2

document created 2021-05-24 by UserName
year,sector,class,variable1,data_value,flag
------------------------------------------------------------
2014,Central government,Total,Environmental protection,1.1,R
2015,Central government,Total,Environmental protection,1.2,P
2016,Central government,Total,Environmental protection,1.2,P
2017,Central government,Total,Environmental protection,408,R