Is there a utility that split file by newline symbol? e.g if a file contains the following lines,
aa
bbb
cccc
If I want to split it to 3 files, the desired output would be:
aa
, bbb
And cccc
(in 3 different files)
I already checked the split
command, it only cut file by file sizes, not what I want.
If I don't wrote a utility myself, is there any standard tool to use?