Parsing csh scripts with python
ramen at lackingtalent.com
Wed Mar 29 01:14:32 CEST 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