Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> splitting rows, Splliting rows based on size
im4vip
Posted: May 31 2005, 07:36 AM
Quote Post


Newbie
*

Group: Members
Posts: 8
Member No.: 890
Joined: 27-March 05



Hello,
Can someone tell me how I can split a row, if it's length exceeds 100 characters ?
Also split has to be on either before or after a word & not a letter

i.e

i have a line

hello1,hello2,hello3,hello4,hello5,hello6....,hello49,hello50,hello51....

If length of the line exceeds 100 chars when it reads hello50, then

output need to be

hello1,hello2,hello3,hello4,hello5,hello6....,hello 49
hello50,hello51........................

and it should not be

hello1,hello2,hello3,hello4,hello5,hello6....,hel
lo49,hello50,hello51........................

Is this possible in scripting ??

TIA
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Shells & Scripting | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0570 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: PCB Layout, CadStar :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum