For example I just wanted to print something like this in the command line. Let say I have a file called file.txt. What is life? how are you? hi whatup this is more thanAnd I want to print it out on the command line using awk but if the number of characters is greater than 7, then the output should look like this. What is  life? how are  you? hi whatup this is more thanSo basically when I use awk if the number of characters is greater than 7 it split the line into two lines on the output.
How can I split a line into two lines if the length is greater than 7 using awk?
text processing;awk;sed