in reply to printing specific lines

I'm sorry, but I don't understand your question. Are the 1 3 5 7 the line numbers you want to print or are they the actual lines in a file? What is the output file you are are writing to, are you trying to print out to that file or STDOUT?

Replies are listed 'Best First'.
Re^2: printing specific lines
by Anonymous Monk on Feb 27, 2005 at 21:08 UTC
    the line numbers to print are stored in a file.
    1 3 5
    text file
    once upon a time ... big bear .... shot dead
    so the lines i want to print are 1 3 and 5, to a separate output file thanks