forked from BgLUG/bglug.it
urlcheck
This commit is contained in:
parent
7410e43551
commit
377541fd04
20
urls/check_urls.sh
Executable file
20
urls/check_urls.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
URLLISTFILE=old_website_urls.txt
|
||||
|
||||
if [ "a$1" = "a" ] ; then
|
||||
echo "Usage:"
|
||||
echo " $0 [base_url]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -r "${URLLISTFILE}" ] ; then
|
||||
echo "URL list file (${URLLISTFILE}) not readable"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
while read URL; do
|
||||
if [ -n "${URL}" ]; then
|
||||
curl -sL -o /dev/null -w "%{http_code} - %{url_effective}\n" "${1}/${URL}"
|
||||
fi
|
||||
done < "${URLLISTFILE}"
|
19
urls/old_website_urls.txt
Normal file
19
urls/old_website_urls.txt
Normal file
@ -0,0 +1,19 @@
|
||||
/about/
|
||||
/about/privacy-policy/
|
||||
/aderire/
|
||||
/category/case-history/
|
||||
/chi-siamo/
|
||||
/chi-siamo/privacy-policy/
|
||||
/feed/
|
||||
/istituto-comprensivo-camozzi-bergamo-linux/
|
||||
/istituto-comprensivo-ilaria-alpi-milano-rinnova-laboratori-con-linux/
|
||||
/istituto-comprensivo-mastri-caravaggini-libero/
|
||||
/join-project/
|
||||
/progetto/
|
||||
/progetto/formazione/
|
||||
/progetto/info-tecniche/
|
||||
/progetto/voting-machine-ubuntu/
|
||||
/project/
|
||||
/project/features/
|
||||
/project/training/
|
||||
/seminario-vescovile-bergamo-alta-linux/
|
Loading…
x
Reference in New Issue
Block a user