************************程序文件名:create**************************
#!/bin/bash创建一个可执行文件,在文件名参数后可可以选用-o或者-g进行选择编辑工具打开;
if [ -e $1 ] #注意if中的空格段
then
echo "the file is already exists!"
else
`touch $1`
`chmod u+x $1`
echo "Finish!"
fi
case "$2" in
"-g" ) `gedit $1`;;
"-v" ) `gnome-terminal -x vi $1`;;
"" ) echo "";;
* ) echo "command error!";;
esac