On Tue, 22 Nov 2016, Scott Bigelow wrote:

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] } }'

Scott,

  I understand how this works and it does a good job, except for putting the
first block at the end with no spaces. Perhaps the code is missing the first
block?

  I've attached a data file if you'd like to play with it. In the meantime,
I manually move the last block to its proper alphabetically order.

  It's interesting that I find no examples of this function on the web or in
'Effective Awk Programming, 3rd Ed.'

Thanks,

Rich
Dundee STP
Dundee
Alan Mustain
541-538-3922


Huntington STP
Huntington
John L Branson
541-869-2202


Reedsport STP
Reedsport
Robin L Morgan
541-271-4313


Coos Bay STP No. 2 - Empire
Coos Bay
Steven D Simpson
541-267-3966


Cascade Locks STP
Cascades Locks
Doug Nichols
541-386-2432


Sundown Sanitary Sewer District
Astoria
Terry Ager
503-861-2342


Paisley STP
Paisley
Theresa Vickerman
541-943-3173


Tryon Creek WWTP
Portland
Greg Hettman
503-823-2318


Tri-City Service District
Tri-City WPCP
Oregon City
Doug Harbaugh
503-557-2823


Sumpter STP
Sumpter
Lee German
541-894-2314


Shoreline Sanitary District STP
Warrenton
Diane Nussbaumer
503-861-4352


North Powder STP
North Powder
Cody Anderson
541-898-2185


Jefferson STP
Jefferson
Steven F Human
541-327-2768


Powers WTP
Powers
Ben Mcmakin
541-439-3331


Douglas County Public Works/Roseburg Landfill
Roseburg
Tom Manton
541-440-4255


Klamath Falls WWTP
Klamath Falls
Greg Gestvang


Coquille WTP
Coquille
Dan Gaslin
541-396-4614


Carlton STP
Carlton
Bryan W Burnham
503-852-7575


Jackson County Parks & Recreation Dept.
Willow Lake Recreation Area STP
White City
Bob Kamody
541-776-7001


Independence STP
Independence
Chad Tracey
503-838-4781


Astoria STP
Astoria
Ken Cook
503-325-5821


Sheridan STP
Sheridan
Terry Lieb
503-843-3775


Lebanon WWTP
Lebanon
Brian Heliwell
541-451-1117


Cannon Beach STP
Cannon Beach
Joy Gannon
503-436-2328


Seaside STP
Seaside
Neal Wallace
503-738-5511


Troutdale Municipal Stormwater, Ms4
Troutdale
Amy Pepper
503-674-7241


Hermiston STP
Hermiston
Darrell Schiffner
541-567-5272


The Dalles WTP
The Dalles
Dave Anderson
541-298-1242 X300


Harrisburg Lagoon Treatment Plant
Harrisburg
Tim E. Bunnell
541-995-6655


La Grande STP
La Grande
Lyle Bridges
541-962-1325


Newberg WTP
Newberg
Michael Soderquist
503-537-1214


Ontario STP
Ontario
Art Allen
541-881-8011


Jordan Valley STP
Jordan Valley
Con Warn
541-586-2460


Wallowa STP
Wallowa
Travis S Goebel
541-886-2422


Arch Cape Service District
Arch Cape STP
Arch Cape
Thomas Merrell
503-325-8631


Sandy WWTP
Boring
Robert Watts
503-668-3251


Netarts-Oceanside STP
Tillamook
Daniel L Mello
503-842-8231


Adrian STP
Adrian
Shawn Snyder
541-372-2698


Fossil STP
Fossil
Teresa Hunt
541-763-2698


Condon STP
Condon
Larry Durfey
541-384-2711


Baker City WWTP
Baker City
Chuck Everson
541-524-2019


Heppner STP
Heppner
Gerald W Breazeale
541-676-9618


Cottage Grove STP
Cottage Grove
Mike Owen
541-942-3152


Stayton STP
Stayton
Brenda Kuiken
503-769-2810


Halfway STP
Halfway
Page M Frederickson
541-742-4099


Dufur STP
Dufur
Glenn Miller
541-467-2401


Woodburn POTW
Woodburn
Curtis Stultz
503-982-5280


Amity WTP
Amity
Bruce Klumpp
503-835-4181


Monument STP
Monument
Joe Duncan
541-934-2025


Waldport WWTP
Waldport
Richard Nyhus
541-563-2325


Warrenton STP
Warrenton
Eric N. Sharpsteen
503-861-2460


Elgin STP
Elgin
R.L. Christian
541-805-9115


Gardiner Sanitary District
Gardiner
?
541-271-4693


Chiloquin STP
Chiloquin
Tony Olsen
541-783-2922


Bonanza STP
Bonanza
John Cloud
541-545-7355


Stanfield Wastewater System Improvements
Stanfield
Shelley Bonnett
541-449-3831


Brookings WWTP
Brookings
Joe Ingwerson
541-469-1181


Butte Falls STP
Butte Falls
Shelly Conopa
541-865-4382


Vernonia Water Treatment Plant
Vernonia
Robyn Bassett
503-429-5291


Tillamook STP
Tillamook
Arley F Sullivan
503-842-2472


Oak Lodge WWTP
Milwaukie
Aric A Osterlund
503-653-1653


Enterprise STP
Enterprise
Dave Wilkie
541-426-3093


Newport STP
Newport
John Ritchey
541-574-3371


Rockaway Beach STP
Rockaway Beach
Shawn Vincent
503-355-2291


Madras STP
Madras
Keith Bedell
541-475-7259


Parkdale STP
Mt Hood/Parkdale
Larry James
541-352-7371


Bend Wastewater Control Plant
Bend
Paul R. Roy
541-322-6334


Port of Astoria
Astoria
Alejandro Bancke
503-325-4521


Salem Municipal Stormwater Ms4
Salem
Tim Gerling
503-588-6044


Halsey STP
Halsey
Judy Cleeton
541-369-2522


Arlington STP
Arlington
Brian L Foster
541-454-2743


Yachats WTP
Yachats
John Mcklint
541-547-3565


Hubbard STP
Hubbard
Jaime Estrada
503-982-9429


Prairie City STP
Prairie City
Bob Titus
541-820-3605


Sutherlin Nonpareil WTP
Sutherlin
Louis Douglas
541-459-5768


Echo STP
Echo
Daren Tuil
541-376-8411


Pendleton WTP
Pendleton
Bob Patterson
541-966-0249

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to