ܼ

ǥ쥯ȥ¸߳ǧ

  • ¸ߤ뤳Ȥǧ
    DIRNAME="[ǥ쥯ȥ]"
    if [ -d $DIRNAME ]; then
     echo $DIRNAME" is found"
    fi
    
  • ¸ߤʤȤǧ
    DIRNAME="[ǥ쥯ȥ]"
    if [ -d !$DIRNAME ]; then
     echo $DIRNAME" is not found"
    fi

RPMѥåΥ󥹥ȡǧ

  • ¸ߤ뤳Ȥǧ
    RPMPKG="[ѥå̾]"
    rpm -qa | grep $RPMPKG 2>&1 > /dev/null
    if [ $? -eq "0"]; then
     echo $RPMPKG" is found"
    fi
  • ¸ߤʤȤǧ
    RPMPKG="[ѥå̾]"
    rpm -qa | grep $RPMPKG 2>&1 > /dev/null
    if [ $? -eq "1"]; then
     echo $RPMPKG" is not found"
    fi

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2012-02-06 () 14:11:40 (4406d)