Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Replace All Spaces With A New Line

DZone's Guide to

Replace All Spaces With A New Line

·
Free Resource
// Replace all spaces with a new line


$ sed -e 's/\s\+/\n/g' old > new
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}