
# Usage - sh tools/shift_site.sh $site_abbr

abbr=$1

mv data/sites/$1.yml data/transition-sites/
rm data/mappings/$1.csv
for domain in $(grep -o '[^ ]*uk' data/transition-sites/$1.yml | grep -v 'www.gov.uk' | grep -v 'blog.gov.uk' | sed 's/http[s?]:\/\///g' | sort | uniq )
do
	rm data/tests/$domain.csv
done


# Usage - sh tools/shift_site.sh $site_abbr

abbr=$1

mv data/sites/$1.yml data/transition-sites/
rm data/mappings/$1.csv
for domain in $(grep -o '[^ ]*uk' data/transition-sites/$1.yml | grep -v 'www.gov.uk' | grep -v 'blog.gov.uk' | sed 's/http[s?]:\/\///g' | sort | uniq )
do
	rm data/tests/$domain.csv
    grep -v -F $domain data/tests/popular.csv > temp_file && mv temp_file data/tests/popular.csv
    grep -v -F $domain data/tests/popular_tests_incompatible_with_redirector.csv > temp_file && mv temp_file data/tests/popular_tests_incompatible_with_redirector.csv

done

Modify shift site utility to clean popular test files
Modify shift site utility to clean popular test files
