How Can I Repeatedly Get the First 50 Lines from a TXT File?

JanPaul999

Client
Регистрация
27.06.2013
Сообщения
56
Благодарностей
2
Баллы
8
Hi, I am building a project that submits and grabs the results of 50 domains at a time to a domain availability checker.
The complete list is thousands of URLs long, but I only want it to process 50 at the time.

So what I 'm trying to do is to load the first 50 URLs in a variable, process them, and then repeat the process with the next 50 URLs and so on until they're all done.

The problem is, I can't find a way to put the first 50 URLs (a range of lines) in a variable.
I was able to put the first 50 URLs in a sublist, but sublists don't seem to be accessible by a variable. It looks like I can only add single lines from a list to a variable.

I tried also the same with loading files, but there the problem is that for as far as I know I can't select a range of lines.

Am I missing something? Is what I'm trying to do just not possible? Or is there a way to do this that I've overlooked?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
I was able to put the first 50 URLs in a sublist, but sublists don't seem to be accessible by a variable. It looks like I can only add single lines from a list to a variable.
You can merge line of list.
When you export 50 lines to sublist choose to delete them. Then merge lines of sublist and use result variable. Then clean second list (sublist). Repeat.
 

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18
If Read file,have a try:
Javascript code/Match No.:{-Variable.counter-}+49
Increase counter:50
Word processing:[^\r\n]*\S[^\r\n]*

(--alternative--):D
 

JanPaul999

Client
Регистрация
27.06.2013
Сообщения
56
Благодарностей
2
Баллы
8
Awesome, thanks guys, got it working now
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
wouldnt simple macro be much better solution for this? :D

keep it simple
 

JanPaul999

Client
Регистрация
27.06.2013
Сообщения
56
Благодарностей
2
Баллы
8

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)