Ok, I have a script to ls the contents to a file. Now I need to
determine how many items are in the file, how do I count the lines? I
have attempted to loop tasker, to read a line, then increase a
linecount var, goto 1, and repeat till eof. When EOF, it ends loop
and supposed to save the variable with total lines, so I can set the
min / max values for var random, to pick a random line to read with
read file. Problem is, the loop is SLOW. I have alot of files in the
folder, so its taking forever to count the lines. Is there anything
to count lines in a file?
Or, is it possible using ASE script, to count the items in folder, or
count lines in file?
Tried using ls | wc -l (but wc does not have permission to run)
Thanks