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
#2
Thanks for sharing this post.I am very pleased to read this article.
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)