Created
October 31, 2018 14:31
-
-
Save Jlaird/89dfa17a22210d1a83adfe3fceb6cba2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mkdir clean | |
| for file in *.txt; do | |
| #Remove .txt from end of files | |
| domain=${file%".txt"} | |
| cli53 create $domain --comment 'Gallo' | |
| #Remove dumb Godaddy UTFI junk on first line | |
| tail -n +2 $file > clean/$file | |
| # Fix Parked domains | |
| sed -i -e 's/Parked/52.3.155.236/' clean/$file | |
| cli53 import --file clean/$file --replace $domain | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment