| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Ben
On 29 Mar 2004, at 02:22, Ben Dougall wrote:Intresting problem that! I too had a good read of the man page and a play after that but could not do what you want directly. However, you can change functions cleanly with tops, so if you do it in three stages by shifting functions that correspond to your search to an unused value, do a generic replace and then restore the generic value you get the effect you want. Try this,
it hasn't made any distinction between variable names and method names. i can't see which option, if any, specifies only change variables. args seemed to be the most likely but doesn't look like >> it.
how do you specify only variables?
change_var.sh:
#!/bin/sh
#
echo "changing variables $1 to $2 in file $3"
tops replacemethod "$1" with "CHANGE_VAR_TEMPORARY" $3
tops replace "$1" with "$2" $3
tops replacemethod "CHANGE_VAR_TEMPORARY" with "$1" $3
| References: | |
| >Re: tops command line help please (From: Adrian Bool <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.