A more generalized concept is the usage of self written filter scripts to perform any operation on the netlist, whatever you want.
In the 'options'-dialog, the entry script file exists .
By default, 'script file'
is set to '(none)'. If set to any other
value, SPICECAD will interpret this value as the name of a script file.
SPICECAD will call this script file via the 'system' command.
The call is as follows:
system('sh $script_file $netlistfile').
Inside this script , you can do whatever you want: calling other
'perl' scripts, C programs, the options are only limited by the time
you want to spend on writing the converter program.
But, if you want to change the contents of the netlistfile, make sure
you do not destroy it.
A script could look like this:
cat $1 | awk -f /usr1/kimtr/replace_caps_by_resistors.awk > /tmp/whatever1 cp /tmp/whatever1 $1
By the way, if you run 'cpp' AND a script, 'cpp' is executed first, the script afterwards.