#!/bin/sh # Run all SPICE netlists in this directory. # Results are written here too (wrdata uses relative paths). # Usage: cd sim && sh run.sh cd "$(dirname "$0")" for sp in *.sp; do echo "--- $sp ---" ngspice -b "$sp" done