代码如下:
#!/bin/sh
echo "I will save the man command to file"
man $1 | col -b > /home/master/man_chinese/$1.txt
if [ -f /home/master/man_chinese/$1.txt ]
then
echo "successed"
else
echo "fail"
fi
chmod 664 /home/master/man_chinese/$1.txt
chown master /home/master/man_chinese/$1.txt