Get a file name from arg, then write line numbers in loop.