I need to be reading a file and only working on the lines which contain a certain character (the character will be selected from the command line) and then do calculations on those lines. The rest of the lines should not be taken into consideration in the calculations.
If the user doesn't define anything in the command line, the calculations should done on of the lines of the file.
Thanks