Re: How to do this, fold + split

2012-01-06 Thread Karl Vogel
>> On Fri, 30 Dec 2011 15:09:13 + (UTC), >> T o n g said: T> I want to split a file every ### of chars. Is it possible not to split T> on the word but word boundaries? Yup, for certain meanings of "split". GNU fmt is part of "coreutils". Here's sample.txt (rulers added for readabilit

Re: How to do this, fold + split

2011-12-31 Thread John Hasler
T o n g wrote: > I want to split a file every ### of chars. Is it possible not to split on > the word but word boundaries? Use Awk or Sed. -- John Hasler -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.

Re: How to do this, fold + split

2011-12-31 Thread Camaleón
On Fri, 30 Dec 2011 15:09:13 +, T o n g wrote: > I want to split a file every ### of chars. Is it possible not to split > on the word but word boundaries? I was first thought in "awk" but Google suggested "fold": sm01@stt008:~$ cat Desktop/text.txt thisis a sample text file to seehow thescri

Re: How to do this, fold + split

2011-12-30 Thread Christofer C. Bell
On Fri, Dec 30, 2011 at 10:12 PM, Christofer C. Bell wrote: > On Fri, Dec 30, 2011 at 12:03 PM, Kleber Fortaleza > 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 boundarie

Re: How to do this, fold + split

2011-12-30 Thread Christofer C. Bell
On Fri, Dec 30, 2011 at 12:03 PM, Kleber Fortaleza 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 I can't

Re: How to do this, fold + split

2011-12-30 Thread Kleber Fortaleza
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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a sub