[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: simple text formatting



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 I have has hundreds of entries.
> Thanks
> Mike
> 

I don't know if this is optimal:

for x in `cat file`; do echo $x; done



Reply to: