Statistics
| Branch: | Revision:

root / src / utils / dos2unix @ master

History | View | Annotate | Download (276 Bytes)

1
#!/bin/sh
2
#
3
# Converts files from DOS
4
# --VA
5
#
6
while [ "$1" != "" ]
7
do
8
    if [ -f $1 ]; then
9
       echo -n $1 '  '
10
       cp $1 $1.b
11
       sed 's/[[:cntrl:]]$//g' $1.b > $1
12
       rm $1.b
13
    else
14
       echo -n "($1:cannot open)  "
15
    fi
16
    shift
17
done
18
echo ""
19
echo Done