Re: passing argument to script

2006-04-07 Thread Sion Arrowsmith
Daniel Nogradi <[EMAIL PROTECTED]> wrote: >If you execute your script from the command line on Linux you need to >enclose it in quotation marks otherwise your shell will interfere. So >you need to invoke your program as > >python yourscript.py "ABCE-123456 ABC_DEF_Suggest(abc def ghi).txt" Same i

Re: passing argument to script

2006-04-07 Thread BartlebyScrivener
Works for me. I get "abc def ghi" using your script on Windows XP and ActiveState Python 2.4.3 rd -- http://mail.python.org/mailman/listinfo/python-list

Re: passing argument to script

2006-04-07 Thread Daniel Nogradi
> hi > > if i have a string like this > > "ABCE-123456 ABC_DEF_Suggest(abc def ghi).txt" > > that needs to be passed to a python script > and i wanted to get the words inside the brackets after i passed this > string. I did a re > something like > > thestring = sys.argv[1:] > pat = re.compile(r".*

passing argument to script

2006-04-07 Thread eight02645999
hi if i have a string like this "ABCE-123456 ABC_DEF_Suggest(abc def ghi).txt" that needs to be passed to a python script and i wanted to get the words inside the brackets after i passed this string. I did a re something like thestring = sys.argv[1:] pat = re.compile(r".*\((.*)\)\.txt$") if pa