您的位置:首页 > 运维架构 > Shell

Linux下Bash运行脚本

2014-11-12 16:28 155 查看
命令行应该这样写:

sh -c "脚本字符串"

example:

sh -c "if ! type dpkg > /dev/null ; then echo 'some messages' fi"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: