peter green wrote: > Michael Watterson wrote: > =20 >> On 01/08/2011 21:43, Dave Tweed wrote: >> =20 >> =20 >>> Reformatting comments is such a personal style issue that most off-the-= shelf >>> solutions aren't even going to try to address it. If you can show us wh= at >>> your style is, I'm sure one of us could come up with a Perl/sed/awk/wha= tever >>> script to do it. >>> =20 >>> =20 >> sed >> >> >> with a regex >> >> That's the puppy we used before to process a bunch of files .. >> >> But we don't know what the OP wants to do really. >> file:///home/plugwash/Desktop/stuff%20off%20desktop/cprintprepare.dpr >> >> =20 > Check the length of each line > > If the line is within length limit copy it from input to output without=20 > changing it > If the line (including any comments) is over the length limit break it=20 > into two or more lines without changing it's meaning so that the=20 > resulting lines are under the length limit. > > It looks like i'm going to end up writing this myself. > =20 and this is what I ended up doing if anyone wants a copy of the code=20 inform me and i'll post it somewhere. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .