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.

The various for loop solutions are miserably inefficient and are overly
complex. The sed solution is almost reasonable. This is the simplest and
cleanest solution, however:

tr ' ' '\012' < infile > outfile

} Thanks
} Mike
--Greg


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to