ITPub博客

首页 > 应用开发 > IT综合 > shell 的判断

shell 的判断

原创 IT综合 作者:pentium 时间:2013-01-10 11:00:50 0 删除 编辑
#!/bin/sh
file=/u03
if [ "${file}" = "/u03" ]
then
echo the filename is /u03
#!/bin/sh
file=/u03
if [ "${file}" = "/u03" ]
then
echo the filename is /u03
fi

file2=/u04
if [ "${file2}" != "/u03" ]
then
echo the filename is not /u03
fi

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14377/viewspace-1060062/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: oracle 监听
请登录后发表评论 登录
全部评论

注册时间:2010-09-30

  • 博文量
    191
  • 访问量
    327284