#!/bin/csh # Dos2Unix - Convert OASIS files from DOS format to Unix format # if($#argv<1) then echo "\nUsage: $0:t ''" echo 'Converts files in from DOS to UNIX\n' exit(0) endif set tmpfile = tmpfile echo $1 foreach file ($1) /usr/bin/dos2ux $file > $tmpfile rm -f $file mv $tmpfile $file end