Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

647
Visualizações
Unexpected EOF while looking for matching `"' shell script

I get

./matrix: line 36: unexpected EOF while looking for matching `"'
./matrix: line 38: syntax error: unexpected end of file

when I try to run a shell script that I made, but I don't see any misquotes on lines 36-38

SCRIPT:

#!/bin/bash
RAND=$(( ( RANDOM % 10 )  + 1 ))
if [ $RAND == 1 ]
    then
        printf '\e[38;5;118m "Follow The White Rabbit"'|cowthink -f matrix
elif [ "$RAND" == 2 ]
    then
        printf '\e[38;5;118m "To deny our own impulses is to deny the very thing that makes us human."'|cowthink -f matrix
elif [ "$RAND" == 3 ]
    then
        printf '\e[38;5;118m "Neo, sooner or later you\'re going to realize just as I did that there\'s a difference between knowing the path and walking the path."'|cowthink -f matrix
elif [ "$RAND" == 4 ]
    then
        printf '\e[38;5;118m "You have to \let it all go, Neo. Fear, doubt, and disbelief. Free your mind."'|cowthink -f matrix
elif [ "$RAND" == 5 ]
    then
        printf '\e[38;5;118m "What are you waiting \for? You\'re faster than this. Don\'t think you are, know you are. Come on. Stop trying to hit me and hit me."'|cowthink -f matrix
elif [ "$RAND" = 6 ]
    then
        printf '\e[38;5;118m "I\'m trying to \free your mind, Neo. But I can only show you the door. You\'re the one that has to walk through it."'|cowthink -f matrix
elif [ "$RAND" == 7 ]
    then
        printf '\e[38;5;118m "

Tank\: So what \do you need? Besides a miracle.

Neo\: Guns. Lots of guns."'|cowthink -f matrix
elif [ "$RAND" = 8 ]
    then
        printf '\e[38;5;118m "You take the red pill - you stay \in Wonderland and I show you how deep the rabbit-hole goes."'|cowthink -f matrix
elif [ "$RAND" == 9 ]
    then
        printf '\e[38;5;118m "What is real? How \do you define \'real\'? If you\'re talking about what you can feel, what you can smell, what you can taste and see, \then \'real\' is simply electrical signals interpreted by your brain."'|cowthink -f matrix
elif [ "$RAND" == 10 ]
    then
        printf '\e[38;5;118m "Have you ever had a dream, Neo, that you were so sure was real? What \if you were unable to wake from that dream? How would you know the difference between the dream world and the real world?"'|cowthink -f matrix
fi
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Fix escaping of ': replace all \' by '\''.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda