Parsing csh scripts with python
Dave Benjamin
ramen at lackingtalent.com
Tue Mar 28 18:14:32 EST 2006
On Tue, 28 Mar 2006, David Hirschfield wrote:
> I need to be able to parse the script, modify some variable settings and
> then write the script back out so that the only changes are the
> variables I've modified (comments, ordering of statements, etc. must
> remain the same).
>
> I looked at shlex, but I don't think it will do what I need.
What about regular expressions?
--
.:[ dave benjamin -( ramen/sp00 )- http://spoomusic.com/ ]:.
"one man's constant is another man's variable" - alan perlis
More information about the Python-list
mailing list