[clug] Splitting a file using bash

Scott Ferguson scott.ferguson.clug at gmail.com
Sun Sep 14 19:00:59 MDT 2014


On 15/09/14 10:54, Hal Ashburner wrote:
> I want to turn stdout into  multiple files. I have markers where I
> would like this to happen.

Curious - why didn't you use 'split' or 'csplit'??

i.e. for split, 1st pass find byte markers/line numbers, 2nd pass split
at byte markers/line numbers.

What is the criteria for splitting?
Are these splits mid-line?

-------------8<----------->8------------------


Kind regards


More information about the linux mailing list