Re: simple text formatting

2003-10-07 Thread Wilko Fokken
Here follows an answer in C: (best viewed with "tabstop=4" in ~/.vimrc) you can simply add some more char's (e.g: '/') to be ignored as whitespace: just add them to the head of the 'case' list, e.g. "case '/':" without futher additions and recompile: "cc -

Re: simple text formatting

2003-10-06 Thread Dave Carrigan
On Sun, Oct 05, 2003 at 11:37:57PM -0700, Mike Egglestone wrote: > Hi, > > I have a file in this format of words: > > joe jill bill bob frank tom harry > > and want to convert the file to this format: > > joe > jill > bill > bob > frank > tom > harry fmt -w 1 filename > newfile -- Dave Carri

Re: simple text formatting

2003-10-06 Thread Michael D Schleif
Gregory Seidman <[EMAIL PROTECTED]> [2003:10:06:07:21:02-0400] scribed: > On Sun, Oct 05, 2003 at 11:37:57PM -0700, Mike Egglestone wrote: > } Hi, > } > } I have a file in this format of words: > } > } joe jill bill bob frank tom harry > } > } and want to convert the file to this format: > } >

Re: simple text formatting

2003-10-06 Thread Paul Talacko
On Sun, Oct 05, 2003 at 11:37:57PM -0700, Mike Egglestone wrote: > Hi, > > I have a file in this format of words: > > joe jill bill bob frank tom harry > > and want to convert the file to this format: > > joe > jill > bill > bob > frank > tom > harry > Here's another way: perl -p040 -e 's/\s

Re: simple text formatting

2003-10-06 Thread Gregory Seidman
On Sun, Oct 05, 2003 at 11:37:57PM -0700, Mike Egglestone wrote: } Hi, } } I have a file in this format of words: } } joe jill bill bob frank tom harry } } and want to convert the file to this format: } } joe } jill } bill } bob } frank } tom } harry } } Is there an easy way to this? The file

Re: simple text formatting

2003-10-06 Thread Ashish Ariga
On Mon, 2003-10-06 at 12:07, Mike Egglestone wrote: > Hi, > > I have a file in this format of words: > > joe jill bill bob frank tom harry > > and want to convert the file to this format: > > joe > jill > bill > bob > frank > tom > harry > > Is there an easy way to this? The file I have has hu

Re: simple text formatting

2003-10-05 Thread Oliver Elphick
On Mon, 2003-10-06 at 07:37, Mike Egglestone wrote: > Hi, > > I have a file in this format of words: > > joe jill bill bob frank tom harry > > and want to convert the file to this format: > > joe > jill > bill > bob > frank > tom > harry > > Is there an easy way to this? The file I have has hu

Re: simple text formatting

2003-10-05 Thread Tom
On Sun, Oct 05, 2003 at 11:37:57PM -0700, Mike Egglestone wrote: > Hi, > > I have a file in this format of words: > > joe jill bill bob frank tom harry > > and want to convert the file to this format: > > joe > jill > bill > bob > frank > tom > harry > > Is there an easy way to this? The file

simple text formatting

2003-10-05 Thread Mike Egglestone
Hi, I have a file in this format of words: joe jill bill bob frank tom harry and want to convert the file to this format: joe jill bill bob frank tom harry Is there an easy way to this? The file I have has hundreds of entries. Thanks Mike - Th