]> Dogcows Code - chaz/yoink/blob - scripts/unix2dos.sh
remove some unused stlplus modules
[chaz/yoink] / scripts / unix2dos.sh
1 #!/bin/sh
2
3 #
4 # Yoink
5 # An implementation of unix2dos using sed.
6 #
7
8 if [ -f "$1" ]
9 then
10 TMPFILE="$1.$$"
11 sed 's/\r*$/\r/' "$1" >$TMPFILE
12 if [ ! "$2" ]
13 then
14 mv -f "$TMPFILE" "$1"
15 else
16 mv -f "$TMPFILE" "$2"
17 fi
18 rm -f "$TMPFILE"
19 else
20 echo "`basename $0` infile [outfile]"
21 echo " convert a text file from unix to dos line-endings"
22 exit 1
23 fi
24
This page took 0.030418 seconds and 4 git commands to generate.