How to avoid split in output in sqlplus
As with many things database-y, it's probably easier to extract them as rows and then reformat using your favourite shell-based text processor or, if you still want to try and get them all on one line, make sqlplus's "line" as big as it will go: 

set linesize 32767