Bash split string into multiple lines. txt lines into each file carrying 1000 lines and save as.

Bash split string into multiple lines. Dash and Ash do not support it.