#!/bin/csh
# Dos2Unix - Convert OASIS files from DOS format to Unix format
#

if($#argv<1) then
	echo "\nUsage: $0:t '<filespec>'"
	echo 'Converts files in <filespec> 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

