Is there a way to use ngspice command line without providing a circuit file? ex: passing the circuit as a string within the command line ?
EDIT
Currently the only way I could use ngspice in command line is by providing an input file.. I could not find an example of using pipe mode though to pass netlist directly via command line without have to use a file to read from.
ngspice "voltage divider netlist V1 in 0 1 R1 in out 1k R2 out 0 2k .end"
... How do you get this string in the first place? \$\endgroup\$ – Huisman Jun 13 '19 at 12:27