From 43ad1b5da0503c0e3e3c3e50964cc9140855d805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 27 Aug 2015 12:01:41 -0700 Subject: [PATCH] google-code-moved: count apps left --- tools/google-code-moved.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/google-code-moved.sh b/tools/google-code-moved.sh index a24a4b6572..a5529575f7 100755 --- a/tools/google-code-moved.sh +++ b/tools/google-code-moved.sh @@ -5,7 +5,12 @@ set -e -sed -n 's@Source Code:\(.*code\.google\.com.*/source\)@\1@p' metadata/*.txt | sort -u | shuf | while read url; do +all=$(sed -n 's@Source Code:\(.*code\.google\.com.*/source\)@\1@p' metadata/*.txt | sort -u) +len=$(echo "$all" | wc -l) + +echo "$len apps left" + +echo "$all" | sort -u | shuf | while read url; do echo $url found=$(curl -s $url/checkout | sed -n 's/.*here<\/A>.*/\1/p')