extract the data from a text file without any deli

2019-09-20 11:11发布

问题:

I have an input text file which appears like this,

12717251268292797123831987-->Header

a1921972998468104998676534716
17923862384623647864723467631
28791379370982379807821876843
23767891263716387928371836183
32189378913681698677676372876
28168961846349876479864210986

12541521---->tail

Now I want to split the above file in to two different text files.

Can anyone suggest me how to do it using unix shell script.

回答1:

use

split -l 'number of lines' filename


标签: shell unix