Skip to content

Instantly share code, notes, and snippets.

@Jlaird
Created October 31, 2018 14:31
Show Gist options
  • Select an option

  • Save Jlaird/89dfa17a22210d1a83adfe3fceb6cba2 to your computer and use it in GitHub Desktop.

Select an option

Save Jlaird/89dfa17a22210d1a83adfe3fceb6cba2 to your computer and use it in GitHub Desktop.
#!/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