wgetでsitemap作成
wgetでsitemap作成します。
wget --spider --recursive --no-verbose --output-file=wgetout.log http://おれのサイト/
grep -i URL wgetout.log | awk -F 'URL:' '{print $2}' | awk '{$1=$1};1' | awk '{print $1}' | sort -u | sed '/^$/d' > links.txt
ほら、かんたんでしゅ
wget --spider --recursive --no-verbose --output-file=wgetout.log http://おれのサイト/
grep -i URL wgetout.log | awk -F 'URL:' '{print $2}' | awk '{$1=$1};1' | awk '{print $1}' | sort -u | sed '/^$/d' > links.txt
ほら、かんたんでしゅ
コメント