I'm working on a script in which I need to find out how many lines there are in a file. Someone previously suggested using wc -l to find this out. That worked until I tried it on a .png file, a .jpg file, and a .mpg video file. When I tried it on the .png and .jpg files, it missed the last line. When I tried it on the .mpg file, (which had about 55,000 lines) it found only about 24,000 lines. I can open these files in a text editor and find out how many lines there are but I need to be able to find out by using commands that return the number of lines to the program. Any ideas?