Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with simple python 2.6 task
#1
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
Reply


Messages In This Thread
help with simple python 2.6 task - by cardinalmanjune - 02-02-2013, 12:07 PM
RE: help with simple python 2.6 task - by samsmith001 - 09-30-2019, 12:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Help Dεlluzion 3 2,002 09-30-2019, 12:59 AM
Last Post: samsmith001
  Simple Python Python Compiler Canoris 21 9,170 06-01-2011, 06:30 PM
Last Post: Filefinder
  Python 2 vs 3? Jake 8 2,651 12-11-2010, 04:13 PM
Last Post: Bursihido
  Python help Kharnage 2 886 02-12-2010, 09:07 PM
Last Post: Kharnage
  "==" and "is" in Python Canoris 1 844 02-07-2010, 03:55 PM
Last Post: uber1337

Forum Jump:


Users browsing this thread: 1 Guest(s)