#!/bin/sh # wxtodos # Converts all files on the command line from UNIX to DOS # end-of-line format. Change TODOSPROGRAM to be # your local DOS to UNIX filter, e.g. todos or unix2dos TODOSPROGRAM=todos if [ "$1" = "" ] then echo "Usage: wxtodos file1 file2 ..." exit fi while [ ! "$1" = "" ] do if [ -f $1 ] then echo "Converting "$1"..." $TODOSPROGRAM < $1 > todos.tmp /bin/mv todos.tmp $1 fi shift done