blob: f5f9fe1f01e6eea9b722d5d6b4738e940c5d4f48 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/usr/bin/env bash
set -euo pipefail
curl -sL 'https://www.cam.ac.uk/jobs/term/Department-of-Computer-Science-and-Technology' | \
sed '
/<tbody>/,/<\/tbody>/!d
s|<a href="/jobs/term/[^"]*">[^<]*</a>||g
/<a href="\/jobs\//!d
s|^ *<a href="\([^"]*\)">\(.*\)</a>.*|\2 (https://www.cam.ac.uk\1)|'
|