Ok Sorry I tried it on a seperate text file and all the text got jumbled up for some reason. What I need to is pull the IP address out from the illustration below. The line above the second IP address is a blank. 1. 67.195.112.224 2. 3. 4. 6. 7.74.125.16.66 8. 9. 10. 11. 12.74.125.16.66 13. 14. 15. ...
That's exactly what I want... 6 line 12 line 18 line 24 line etc When I ran it, it missed the first 6 lines then copied everything from line 7 so to speak. I ran the command line just as you stated and output it to a sepearate txt file i.e c:\gawk.exe "NR%6==0" ips.txt > c:\temp\1\ippps.tx...