#!/bin/sh # ivol.sh NPTS or ivol.sh i,j if test ! -z "$2" then case "$1" in 3) shift ;; *) echo ivol.sh 3 NPTS or ivol.sh 3 i,j >&2 exit 1 ;; esac fi N=$1 if test -z "$N" then echo ivol.sh NPTS >&2 exit 1 fi sed -n " /^3 $N /,/^\$/p " codes.ivol | grep -v ',' | creconstruct