%vi hage
:%s/^M$//g
:wq
気分はハカー(プ
自分の厨房さをさりげなく出してみよう
$ emacs crlf2lf
#!/bin/sh
if [ ! -x /usr/bin/nkf ]; then
echo "crlf2lf: Please install nkf"
exit 1
fi
if [ -z $1 ]; then
echo "usage: crlf2lf <filename>" >&2
exit 1
fi
if [ -f $1 ]; then
nkf -Lu $1 > $1.nkftemp
mv -f $1.nkftemp $1
exit 0
else
echo "crlf2lf: No such file"
exit 1
fi
C-x C-c
$ chmod 700 crlf2lf
気分はプログラマー(プ
#!/bin/sh
if [ ! -x /usr/bin/nkf ]; then
echo "crlf2lf: Please install nkf"
exit 1
fi
if [ -z $1 ]; then
echo "usage: crlf2lf <filename>" >&2
exit 1
fi
if [ -f $1 ]; then
nkf -Lu $1 > $1.nkftemp
mv -f $1.nkftemp $1
exit 0
else
echo "crlf2lf: No such file"
exit 1
fi
C-x C-c
$ chmod 700 crlf2lf
気分はプログラマー(プ
すみません。消防なのでどこが面白いのか分かりません。
返信 [1]
rm ーr *、*
レスを投稿する
