There is a non-trivial direct solution:
#!/bin/bash path_to_file=$1 while read line do counter=1; for word in $line do echo -n $word" "; if (($counter % 3 == 0)) then echo ""; fi let counter=counter+1; done done < ${path_to_file}
Save this in a script, give it a name (for example, test.sh) and set it to run mode. Then, if your text is saved in "myfile.txt", call it like this:
test.sh myfile.txt
source share