Hi,
here is my input file:
#cat file
1
2
3
4
5
6
7
I want to split this file into files with the record separator RS = 2 or more blank lines.
Therefore I should obtain:
#cat 001.lct
1
2
3
#cat 002.lct
4
5
#cat 00.lct
6
7
My command :
awk ' BEGIN { RS="" } { i++...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.