The # is part of the naming creation syntax, I can't remember the doc page for that. It ensures that "vertCluster" will always have a number in the name. Without it, the first would be vertCluster, followed by vertCluster1, vertCluster2. This would be bad if another part of the script expects to pick one by number.…
I'm not sure what you mean by "number of lines", can you clarify? I noticed a script called "djRivet.mel" that has some similar features that you want to do. Might want to check that out for examples. This script: string $verts[] = `ls -sl`; print $verts; Returns: "pCube1.vtx[0:7]". Adding -fl to the ls command will…