This was quite confusing, what's your ultimate motive? to search for a string a file and get what line it is in, right?