Split one file into multiple files based on delimiter
A one liner, no programming. (except the regexp etc.) csplit –digits=2 –quiet –prefix=outfile infile “/-|/+1” “{*}” tested on: csplit (GNU coreutils) 8.30 Notes about usage on Apple Mac “For OS X users, note that the version of csplit that comes with the OS doesn’t work. You’ll want the version in coreutils (installable via Homebrew), which … Read more