1

String manipulation

view story
linux-howto

http://www.unix.com – Hi , I am getting a string like Code: aaa,bbb,sdsdad,sdfsdf,sdfsdfdsf,rtyrtyr,45654654,ddfdfdfgdfg,dfgdfgdg.......... . Now what I need is to format it. So after each nth comma I need one newline. So the above will look like when n=3 Code: aaa,bbb,sdsdad, sdfsdf,sdfsdfdsf,rtyrtyr, 45654654,ddfdfdfgdfg,dfgdfgdg........... Please help. (HowTos)