Let me try ... BTW, "Bat" should be "Ong" not "Nmg" :)

dennis2 (Dennis)
#!/bin/sh

if [ "X$1" = "X" ]
then
INPUT="-"
else INPUT=$1
fi

if [ "X$2" = "X" ]
then
OUTPUT=`tty`
else OUTPUT="$2"
fi

cat $INPUT | tr [a-mn-zA-MN-Z] [n-za-mN-ZA-m] > $OUTPUT
(#349294@0)
2002-1-27 -05:00

回到话题: A question to those DX who are proficiency in UNIX scripts

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=349294