43 Words

Put every word on its own line

If you have a file with text like this:

abcd efdg ijklm sfgsdf
sdgf gfgf gdfg dgdffdg

and you want each word on a separate line, the easiest way is xargs:

xargs -n 1 < ./somefile.txt