#!/bin/csh foreach i ( `ls -1 *.ps | awk -F'.ps' '{print $1}'`) convert $i.ps $i.gif end