Support Forums

Full Version: help with simple python 2.6 task
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

samsmith001

Thanks for sharing this post.I am very pleased to read this article.