Get line numbers for files in a directory