smaller groups

Discussion in 'Help Desk' started by donar, Feb 26, 2015.

  1. donar

    donar New Email

    Joined:
    Feb 26, 2015
    Messages:
    1
    Likes Received:
    0
    hi i have about 20k e/m addresses , i want to split them up into 20 x 1000 groups using maybe notepad++, can anyone advise please.
    using win7 , 64 bit , avira a/v software , key logger:p
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,999
    Likes Received:
    120
    Maybe a batch file would work. I edited a script that was for a different purpose to match yours.

    Code:
    @echo off
        setlocal enableextensions disabledelayedexpansion
    
        set "nLines=1000"
        set "line=0"
    
        for /f "usebackq delims=" %%a in ("addresses.txt") do (
            set /a "file=line/%nLines%", "line+=1"
            setlocal enabledelayedexpansion
            for %%b in (!file!) do (
                endlocal
                >>"passwords_%%b.txt" echo(%%a
            )
        )
    
        endlocal
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...