#!/bin/csh -f #set echo verbose alias PRINT echo PRINT ">> shared memory clear all" set documents=`ipcs | grep facesea | awk '{print $2}'` foreach i ($documents) echo $i ipcrm -m $i end