Hello, Ricky!
Replying to a message of Ricky DeLuco to Sean Dennis:
Would you consider sharing the script, me being a geek I would love to
see your code?
A quick note: ArcaOS has some Linux features and many *nix-based utilities that have been ported to it, so this should work as a BASH script with some minor modifications. This technically an OS/2 command script (.CMD):
===
@echo off
rem Last modified 7 November 2023
d:
cd\temp
links -dump -codepage cp437 "
http://www.arrl.org/arrlletter?issue=current" > letter
sed -i '1,42d' letter
sed -i '/Plain-Text/,$d' letter
sed -i 's/Ad//g' letter
sendmsgp $d:\pb\msgs\fiham "Sean Dennis",1:18/200 -s"Weekly ARRL Letter" < d:\temp\letter
sendmsgp $d:\pb\msgs\m_ham "Sean Dennis",618:618/10 -s"Weekly ARRL Letter" < d:\temp\letter
rm -f ./letter
===
So I'll explain what's going on.
I use the Links web browser to scrape the web page to a CP437-encoded text file.
First call to 'sed' deletes lies 1-42 from the top of the file.
Second call to 'sed' searches for the line that has 'Plain-Text' in it, deletes that line and the rest of the lines below that line down to the end of the file.
Third call to 'sed' searches for the word 'Ad' in the document and deletes them.
The two 'sendmsgp' lines call a program I use to write messages into my Squish message bases. The first line posts it here and the second posts it to MIN_HAM in Micronet.
I hope I made it easy to understand.
I have all sorts of scripts I've written from getting my hourly weather to pulling down the space weather advisories. Nothing fancy but quite useful.
'sed' is available for several operating systems to include Windows.
-- Sean
--- FleetStreet 1.27.1
* Origin: Outpost BBS Local Console * bbs.outpostbbs.net:10323 (1:18/200)