TheonW
asked on
Script to create import file
I need a script that will read a text file, and for every line in the text file create a few lines of data in a second text file.
input text file looks like this
navs.org.ukhome
negotiationisdone.com
negotiationisdone.wordpres s.com
negotiationisover.blogspot .com
negotiationisover.com
I need the out put file to look like this
edit "navs.org.ukhome"
set action block
set type wildcard
next
edit "negotiationisdone.com"
set action block
set type wildcard
next
edit "negotiationisdone.wordpre ss.com"
set action block
set type wildcard
next
edit "negotiationisover.blogspo t.com"
set action block
set type wildcard
next
edit "negotiationisover.com"
set action block
set type wildcard
next
input text file looks like this
navs.org.ukhome
negotiationisdone.com
negotiationisdone.wordpres
negotiationisover.blogspot
negotiationisover.com
I need the out put file to look like this
edit "navs.org.ukhome"
set action block
set type wildcard
next
edit "negotiationisdone.com"
set action block
set type wildcard
next
edit "negotiationisdone.wordpre
set action block
set type wildcard
next
edit "negotiationisover.blogspo
set action block
set type wildcard
next
edit "negotiationisover.com"
set action block
set type wildcard
next
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER