1、%sed -e "s/^M//g" test > test1
2、vi test :/%s/^M//g
3、vi test :set nu
4、UE : dos转unix
5、%dos2unix test
6、filemod
#!/bin/sh
cd ./
ls | while read line
do
file=`echo $line`
for filename in $file
do
echo $filename
vi $filename << EOF
:%s/^M//g^M^[
:wq^M^[
EOF
done
done