Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!att!att!cbnewsm!cadman From: cadman@cbnewsm.att.com (jerome.schwartz) Newsgroups: comp.editors Subject: Re: repeated character editing Summary: UPDATE to spelling Keywords: vi sed Message-ID: <1991Mar29.145724.5569@cbnewsm.att.com> Date: 29 Mar 91 14:57:24 GMT References: <1991Mar28.181335.7813@cbnewsm.att.com> Distribution: usa Organization: AT&T Bell Laboratories Lines: 28 In article <1991Mar28.181335.7813@cbnewsm.att.com>, cadman@cbnewsm.att.com (jerome.schwartz) writes: > > How would I do a simple edit command, vi map or sed script, to > replace all occurrences of repeated characters in a file with one > of each of the characters. > > ie: This: AAAAPPPPLLLLEEEE ppppiiiieeee > to this: APPLE pie > > Thanks in advance, > Jerry The example should have been: AAAAPPPPPPPPLLLLEEEE ppppiiiieeee With 2 sets of 4 P's. Still with no success, Jerry ********************************************************************** Jerome Schwartz | Standard Disclaimer: AT&T Bell Laboratories | Crawfords Corner Rd. | Views expressed are my own and Holmdel, N.J. 07733 | do not necessarily reflect those Phone : (201)-949-8560 | of my employer. **********************************************************************