Hi all,
I'm still having problems here and am wondering if anyone can help. I've made progress on some of my other issues and the only issue yet to resolve is splitting lines in a series of .txt files of the form "==================Document 1 of 11"
into the following
"===================
Document 1 of 11"
There are hundreds of .txt files. I'm using sed. I've tried using Dr. L's scripts above but can't for the life of me get them to work. I've tried just invoking sed at the command line and inserting newline characters; I've tried scripts with the 'N' command; nothing works.
The original files are divided into sections such as this:
==============================================================================Document 5 of 6 (Note, in the file, these digits are all on one line)
Tories under fire for taking cash from bailed-out firms; OPENING THEIR
WALLETS:[FINAL Edition]
LARRY JOHNSRUDE, Legislature Bureau Chief. Edmonton Journal. Edmonton,
Alta.:Apr 2, 1997. p. A.3
Author(s): LARRY JOHNSRUDE, Legislature Bureau Chief
Dateline: Edmonton
Section: CANADA
Publication title: Edmonton Journal. Edmonton, Alta.: Apr 2, 1997. pg. A.3
Source type: Newspaper
ProQuest document 21512919
ID:
Text Word Count 574
Document URL:
http://proquest.umi.com/
pqdweb?did=21512919&Fmt=3&clientId=14119&RQT=309&VName=PQD
Abstract (Document Summary)
Alberta Conservative party officials are checking whether, in taking money from
the province's former waste treatment arm, they broke their own policy against
accepting donations from government corporations.
Alberta Special Waste Management System contributed $2,400 to Conservative
party coffers early in 1996 in the midst of a takeover by Bovar Inc., the
government's former partner in the Swan Hills plant.
Party financial records filed with Elections Alberta indicate the donation was
made Jan. 10, 1996, while the government still had a stake in the company.
Full Text (574 words)
(Copyright The Edmonton Journal)
Alberta Conservative party officials are checking whether, in taking money from
the province's former waste treatment arm, they broke their own policy against
accepting donations from government corporations.
Alberta Special Waste Management System contributed $2,400 to Conservative
party coffers early in 1996 in the midst of a takeover by Bovar Inc., the
government's former partner in the Swan Hills plant.
Party financial records filed with Elections Alberta indicate the donation was
made Jan. 10, 1996, while the government still had a stake in the company.
The province announced in July 1995 that it was paying Bovar Inc. $147.5
million to take its 40-per-cent interest in the Swan Hills plant off its hands.
The deal wasn't finalized until July 1996.
Peter Elzinga, executive director of the provincial Tories, said Tuesday he
will check on whether accepting the donation was contrary to party policy.
The Liberals say the donation was unethical.
``Even if there aren't any laws against this, you would think the government
would refuse to take money from anyone that they're negotiating with,'' said
Liberal environment critic Debby Carlson.
``It's absolutely not right. You're paying yourself with taxpayers' money.''
Bovar president Monty Davis said he saw nothing wrong with the donation, which
went to purchase a table at Premier Ralph Klein's fund-raising dinner in
Calgary.
``We wanted to hear what was being said at the dinner,'' Davis said. ``We
though it important to understand the political direction of the province.''
He said the government had only a non-financial interest in Alberta Special
Waste at the time because terms of Bovar's takeover had already been set.
The provincial Elections Act prohibits a political party from accepting
donations from government-controlled companies.
But Bill Sage, director of financial operations for Elections Alberta, said the
list of prohibited corporations didn't include Alberta Special Waste. He
suggested it may not have been on the list because the government didn't have a
controlling interest in it.
Bovar contributed $2,000 to the Conservative party last year.
Alberta Special Waste Management wasn't the only troubled company to give the
Conservatives a campaign contribution.
Cash-strapped Canadian Airlines International, which received a government-
backed loan to stay in business, contributed $4,200 to party coffers. Eaton's
Canada, currently seeking bankruptcy protection, gave $4,000.
In all, the Tories received $2.8 million in donations in 1996, which gave them
a $3-million surplus going into the March 11 election campaign.
The party had budgeted $1.7 million for the campaign. It isn't required to file
election expense statements until June.
By comparison, the Liberals received $644,000 in contributions in 1996, which
left them with a $9,900 deficit.
A Liberal party official called the deficit an accounting procedure rather than
a financial shortfall.
OPENING THEIR WALLETS
Some companies that donated to the Alberta Progressive Conservatives in 1996:
Alberta Special Waste Management Systems -- $2,400
Alberta Power Ltd. - $4,200
Amoco Canada Petroleum Co -- $13,900
[Table]
Baton Broadcasting Inc. -- $3,000
CFRN Television -- $5,000
CHED -- $800
Calgary Sun -- $600
Edmonton Sun -- $720
Canadian Airlines -- $4,200
Dow Chemical Canada Inc. -- $6,100
[Table]
Earl's Restaurants -- $10,000
Eaton's Canada -- $4,000
Edmonton Power -- $6,875
Husky Oil -- $7,500
[Table]
Imperial Oil -- $10,000
Nova Corp -- $14,400
Some companies that donated to the Alberta Liberals:
Amoco Canada
Petroleum Co. -- $7,300
[Table]
Calgary Sun -- $450
Edmonton Sun -- $500
Canwest Global Communications -- $5,000
[Table]
CFRN Television -- $450
Canadian Airlines -- $450
*** Infomart-Online ***
Credit: THE EDMONTON JOURNAL
=========================Document 6 of 6
I'm a definite newbie, but have learned a little bit through the course of the project. Simplicity is a virtue for me, as are explanations of what the various components of any script does.
I'm grateful for your time.