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
-
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
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:
> }
>
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
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
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
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
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
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
9 matches
Mail list logo