On Fri, Dec 30, 2011 at 10:12 PM, Christofer C. Bell
<christofer.c.b...@gmail.com> wrote:
> On Fri, Dec 30, 2011 at 12:03 PM, Kleber Fortaleza
> <kleberfortal...@gmx.com> wrote:
>> On Friday 30 December 2011 13:09:13 T o n g wrote:
>>> Hi,
>>>
>>> I want to split a file every ### of chars. Is it possible not to split on
>>> the word but word boundaries?
>>>
>>> Thanks
>> this shoud be what you want
>>
>> split -b <num_of_chars> <input_filename>
>
> I can't say I know the answer to the question, but I think he's
> asking, "How can I split a file on the nearest whitespace every X
> number of characters?"  I don't think split -b does this (and I'm not
> aware of any simple tool that can).  I think this will require
> development of a script to accomplish.  Maybe some regex magic with
> split -p can do it.

Ignore that split -b.  I was looking at the wrong system's man page.
That's a BSD option (in this case, the system was Mac OS X, i.e.;
Darwin).

-- 
Chris


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caoevnysbja_rmu8-siiufwyfqjybl6l8hc_visgc6uzjv0z...@mail.gmail.com

Reply via email to