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. -- 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/caoevnyvjp0m-od8qbv5bytrnozlgbkmmv2gpau-mesyq3if...@mail.gmail.com