#! /usr/local/std/bin/ksh SIG=/usr/local/vlsi/bin/pseudoview for file in *_sp3 do bi=$(basename $file _sp3) $SIG ${bi}_sp3 ../${bi}_cz done