I'm trying to split up the output of a file and name them based on what's in the file. Example input file:
NMAP for 192.168.1.1
blah 1.1.1.1
blah blah
blah
NMAP for 192.168.1.2
blah 2.2.2.2
blah blah
blah
etc...
I would like break that into separate files
File1: 192.168.1.1.txt
NMAP for 192.168.1.1
blah 1.1.1.1
blah blah
blah
File2: 192.168.1.2.txt
NMAP for 192.168.1.2
blah 2.2.2.2
blah blah
blah
file etc..
I see I can do it with AWK, but I can't install unix utils on all the workstations, so I would like to do this in something that's included in windows 7 enterprise like powershell or VBS, or commandline.
Thanks!