Re: [PLUG] Sorting blocks of text

2016-11-22 Thread Russell Senior
> "Rich" == Rich Shepard writes: Rich>I've a few files of names and addresses; each block is Rich> separated by two blank lines. I'd like to sort them alphabetically Rich> by the first line. 'sort' does not seem to do this as I don't see Rich> a record separator, only a field separator.

Re: [PLUG] Sorting blocks of text

2016-11-22 Thread Scott Bigelow
Not sure if I understand your input format well enough, but I think awk can handle it, something like: awk 'BEGIN{RS="\n\n"} { v[$0]++ } END { n = asorti(v,copy); for(i=1;i<=n;i++){ print copy[i] } }' On Tue, Nov 22, 2016 at 7:44 PM, David Fleck wrote: > On Tue, 2016-11-22 at 18:50 -0800, Joh

Re: [PLUG] Sorting blocks of text

2016-11-22 Thread David Fleck
On Tue, 2016-11-22 at 18:50 -0800, John Jason Jordan wrote: > On Tue, 22 Nov 2016 16:45:05 -0800 (PST) > Rich Shepard dijo: > > >I've a few files of names and addresses; each block is separated by two > >blank lines. I'd like to sort them alphabetically by the first line. > >'sort' does not seem

Re: [PLUG] Sorting blocks of text

2016-11-22 Thread John Jason Jordan
On Tue, 22 Nov 2016 16:45:05 -0800 (PST) Rich Shepard dijo: >I've a few files of names and addresses; each block is separated by two >blank lines. I'd like to sort them alphabetically by the first line. >'sort' does not seem to do this as I don't see a record separator, >only a field separator. >

Re: [PLUG] Sorting blocks of text

2016-11-22 Thread Ali Corbin
On Tue, Nov 22, 2016 at 4:45 PM, Rich Shepard wrote: >I've a few files of names and addresses; each block is separated by two > blank lines. I'd like to sort them alphabetically by the first line. 'sort' > does not seem to do this as I don't see a record separator, only a field > separator. >

[PLUG] Sorting blocks of text

2016-11-22 Thread Rich Shepard
I've a few files of names and addresses; each block is separated by two blank lines. I'd like to sort them alphabetically by the first line. 'sort' does not seem to do this as I don't see a record separator, only a field separator. Is there an emacs function that will do this? My knowledge o

Re: [PLUG] MURPHY's LAW????? - was [Re: Coercing sane file permissions]

2016-11-22 Thread Larry Brigman
On Sun, Nov 20, 2016 at 12:31 PM, Richard Owlett wrote: > . > > Is there a standard log file that will record *ALL* operator > "GUI" *OR* "command line" actions *AND* the system's response? > > I've the time but am short on test procedure design skills. > > The closest thing to your request t

Re: [PLUG] More desktop issues

2016-11-22 Thread Denis Heidtmann
On Tue, Nov 22, 2016 at 11:28 AM, Don Buchholz wrote: > On 11/22/2016 10:56 AM, Denis Heidtmann wrote: > > The latest in this saga is that the machine appears to be functioning > > normally. Two possible reasons: > > > > 1. I opened the case, cleaned out some dust, and reseated the sata cable >

Re: [PLUG] More desktop issues

2016-11-22 Thread Don Buchholz
On 11/22/2016 10:56 AM, Denis Heidtmann wrote: > The latest in this saga is that the machine appears to be functioning > normally. Two possible reasons: > > 1. I opened the case, cleaned out some dust, and reseated the sata cable > to the hard drive. The dust in my opinion was not bad. Checks o

[PLUG] More desktop issues

2016-11-22 Thread Denis Heidtmann
The latest in this saga is that the machine appears to be functioning normally. Two possible reasons: 1. I opened the case, cleaned out some dust, and reseated the sata cable to the hard drive. The dust in my opinion was not bad. Checks of temperatures and voltages never looked suspect. So if