I am trying to print the line numbers of each line with Fail in it. I am using echo grep -n FAIL ${filename} to print the result to the screen. However, it prints every line to teh same line. How do I breakup the result so that each line iss on it's own? 
EDITED: Added input
Input would be :
FAIL
PASS
FAIL
PASSAGE
This gets a PASS
I take a pass on this
Output to the command line would be
1 FAIL
3 FAIL
 
    