but that obviously just truncates the string to 60 characters and drops the rest. I imagine I could use substring and increment the parameters by 60 but then I think I'd end up with a substring out of range error. So I'm stuck as to how I can accomplish this. Any help is appreciated.printf "%.60s\n", $big_string
In reply to How to divide single string across multiple lines? by Osiris1975
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |