blob: 437d4a78786cbad9fc2397e6ca5fb017b81da8dd (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
curl "https://sourceforge.net/projects/logwatch/files/" 2> /dev/null | \
grep "^\s*<tr title=\"logwatch-[^\"]*\" [^>]*>$" | \
sed "s/^\s*<tr title=\"logwatch-\([^\"]*\)\" [^>]*>$/\1/" | \
sort -n | \
tail -n1
|