+ Responder ao Tópico



  1. #1
    marcfee
    Visitante

    Padrão Shell - IF

    Alguem me ajude..... <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif">

    eu estou contruindo um script, mas quando eu uso a estrutura condicional if essa porra executa a variavel que eu defini.........
    ex:
    date_week=`date +"%A"`
    if [ "$date_week"="Tuesday" ]; then
    comando
    fi


    Essa droga está executando o valor da variavel $date_week que é Tuesday......
    O que eu faço...... <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif"> <IMG SRC="images/forum/icons/icon27.gif">

  2. #2
    marcfee
    Visitante

    Padrão Shell - IF

    Galera,
    Já consegui resolver.......



  3. #3

    Padrão Shell - IF

    Qual era o erro as aspas no %A?


    Marcos Amorim