names.sh 194 Bytes
Newer Older
1
2
3
4
5
6
7
8
#!/bin/sh

if [ $# -ne 1 ]
then
    echo Exactly 1 argument is required >&2
    exit 1
fi
curl --silent https://www.ecs.soton.ac.uk/people/$1 | grep -P '(?<="name">).*(?=<\/h1)' --only-matching