Im kinda stuck here,
These are my codes
#script 1
#!/bin/bash
echo ""
$(ls -l)
#script 2
#!/bin/bash
echo ""
iwconfig
#script 3
#!/bin/bash
PATH=$(pwd)
SC1=${PATH}/script1.sh
SC2=${PATH}/script2.sh
echo ""
read -p "Hi, whats your name? " NOME
echo ""
read -p "Glad to meet, ${NOME}, are you fine? [S/N] " FINE
funcao(){
if [[ "${FINE}" = "S" || "${FINE}" = "s" ]]
then
${SC1} &
wait
echo -e "\nGreat, ${NOME}, me too!"
elif [[ "${FINE}" = "N" || "${FINE}" = "n" ]]
then
${SC2} &
wait
echo -e "\nAh, ${NOME}, thats sad :("
else
echo "Invalid answer, ${NOME}!"
fi
}
funcao
I don't know why it keep giving me this output
What am i doing wrong?
Im just testing my skills, no need to be an important command, just need it to work.
Im new to linux, including shell/bash/etc.. Trying to learn, probably made some silly mistake... Well.... story of my life...
Thank you!