02-02-2013, 12:07 PM
I need help with a simple python 2.6 programming task.
I wish to write a code which needs to search a certain text pattern on multiple text files which are parameters in command line, however the number of input files is not constant and can be any number of files.
I do I read in the code a list of files from command line without knowing the size of the list?
Also another parameter in command line is a pattern which needs to be skipped during the search. How can skipping a pattern be performed in python?
Thank you for your help
I wish to write a code which needs to search a certain text pattern on multiple text files which are parameters in command line, however the number of input files is not constant and can be any number of files.
I do I read in the code a list of files from command line without knowing the size of the list?
Also another parameter in command line is a pattern which needs to be skipped during the search. How can skipping a pattern be performed in python?
Thank you for your help