This worked for me, for the first part. [image: Screen Shot 2021-09-08 at 11.59.25 AM.png]
The second part I think would have to be scripted. --Kerri On Wed, Sep 8, 2021 at 11:05 AM Howard <[email protected]> wrote: > I have multiple instances of this sample data (below) in which each > observation has at least three lines and is separated by a blank line. In > each observation, the first line contains a name, the second a time, and > then there is one or more lines of text*:* > > *SAMPLE DATA* > Peter Frost > 25:34 > yes > > Elle Claus > 30:05 > Third line > > Elle Claus > 30:25 > Third line > Fourth line > > Cary Clark > 31:21 > done > ________________ > First, I would like the data organized so that each observation's lines > are combined and separated by two dashes: > > *SAMPLE COMBINED DATA* > Peter Frost -- 25:34 -- yes > Elle Claus -- 30:05 -- Third line > Elle Claus -- 30:25 -- Third line -- Fourth line > Cary Clark -- 31:21 -- done > ________________ > Then, I would like a count of the observations by name: > > *SAMPLE COUNTED DATA* > Peter Frost 1 > Elle Claus 2 > Cary Clark 1 > > I am familiar with using Unix command solutions. > > Thanks, > Howard > > -- > This is the BBEdit Talk public discussion group. If you have a feature > request or need technical support, please email "[email protected]" > rather than posting here. Follow @bbedit on Twitter: < > https://twitter.com/bbedit> > --- > You received this message because you are subscribed to the Google Groups > "BBEdit Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/89eb8047-72c1-4d21-b46d-fa9ad0225425n%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/89eb8047-72c1-4d21-b46d-fa9ad0225425n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CAEmA4ubGOENyvHYf6FCibMbvAO2oYGuPtWiq_QhqR14O7YYn2g%40mail.gmail.com.
