There was a serious itch had to scratch where I want to get a fast overview of the current General Availability and Ongoing Jumbo Hotfix details.
Due to the restructuring of information I had to redesign my tool and it ended up to be a relative simple bash script.
#!/bin/bash
# Fetch Check Point HFA details
# Design by Hugo van der Kooij
CURL="curl -s"
BASE="https://sc1.checkpoint.com/documents/Jumbo_HFA"
for VER in R80.20 R80.30 R80.40 R81 R81.10
do
if [ $VER = "R81" ]; then
VER2="R81.00"
else
VER2=$VER
fi
echo " *** Version $VER ***"
$CURL "${BASE}/${VER}/${VER2}/List-of-Takes.htm" | \
grep "Take" | \
grep -v "Archive" | \
grep "General" | \
sed "s/.*\">//g" | \
sed "s/<.*//g" | \
head -1
$CURL "${BASE}/${VER}/${VER2}/List-of-Takes.htm" | \
grep "Take" | \
grep "Ongoing" | \
sed "s/.*\">//g" | \
sed "s/<.*//g" | \
head -1
done
<< We make miracles happen while you wait. The impossible jobs take just a wee bit longer. >>