in reply to matching options and create new file

open takes as second parameter the name of the file to create. So, instead of giving it the hardcoded output.txt, give it a variable that holds the name of the file you want to create.

Replies are listed 'Best First'.
Re^2: matching options and create new file
by vis1982 (Acolyte) on May 11, 2010 at 09:14 UTC

    what about the output which have been single line instead whatever mentioned like

    Ronaldo SIMO

    Ronaldo POR

    Ronaldo CD82

    in one file ....