Path: utzoo!utgpu!watmath!clyde!att!ucbvax!hplabs!hpfcdc!bayes From: bayes@hpfcdc.HP.COM (Scott Bayes) Newsgroups: comp.sys.mac Subject: Re: replacing nth occurance on line Message-ID: <11010047@hpfcdc.HP.COM> Date: 4 Jan 89 23:37:52 GMT References: <127200052@inmet> Organization: HP Ft. Collins, Co. Lines: 19 > >Does anyone know of a utility or text editor for the Mac >which will replace the nth occurance of a string on a line? > >In other words, I have a number of data fields in a text document >separated by tabs and i want to replace the first tab by a '-' >the second by '...' etc. > >============================================================================= >Ian Dowell ian@inmet.inmet.com >Intermetrics, Inc. uunet!inmet!ian If you're not concerned about blazing speed, and if the file is text and not some word processor's proprietary format, HyperCard should do the trick quite nicely, though you'd have to write a few lines of HyperTalk. I could write it for you, if you give me the spec and a sample text. Scott Bayes bayes@hpfcla