Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
for i in 2014-12-10-openaddressesuk*; do
open $i
cd ${i/\.zip//}
ls -a
for a in *.csv.zip; do
open $a
sed -i.bak 's/http:\/\/alpha\./http:\/\//g' *.csv/*.csv
sed -i.bak 's/http:\/\/alpha\./http:\/\//g' *.csv
rm *.csv/*.bak
rm *.bak
zip $a ${a/.zip//}
done
cd ~/Downloads
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment