Linux脚本shell命令联系

区分命令行传参数练习和用户输入参数 1、 创建一个名为foo.sh 的脚本,让其提供下列特征  A.当运行/root/foo.sh redhat, 输出为fedora  B.当运行/root/foo.sh fedora,输出为redhat  C.当没有任何参数或者参数不是redhat或者fedora时,提示输出以下的信息:/root/foo.sh redhat|fedora 不用bash 程序名的
相关文章
相关标签/搜索