[clug] Splitting a file using bash

Hal Ashburner hal at ashburner.info
Sun Sep 14 19:07:18 MDT 2014


Only because I didn't know any better.
Now, thanks to CLUG, I do. :-)

On 15 September 2014 11:00, Scott Ferguson
<scott.ferguson.clug at gmail.com> wrote:
> 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
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux


More information about the linux mailing list