Let’s say you have a huge (1k+) list of 301s that you need to test in a CSV called redirects.csv

that’s formatted like this:

original_url,new_url

let’s grab that first column (with the orginal urls), and create a txt file with them

1
awk -F"," '{print $1}' redirects.csv > urls-to-test.txt

now let’s test ‘em with curl and dump out the response url and the response code to a new csv

1
xargs -n1  -P 10 curl -o /dev/null --silent --head --write-out '%{url_effective},%{redirect_url},%{http_code}\n' < urls-to-test.txt | tee 301-results.csv

now import both csvs into google sheets and run a VLOOKUP to cross compare